Fixed issue caused by the fix to #447746: user agent header must not
be added, but overwritten.
This commit is contained in:
parent
84b38aba15
commit
f7baf9923f
|
@ -241,7 +241,8 @@ public class HttpRequest implements Request
|
|||
@Override
|
||||
public Request agent(String agent)
|
||||
{
|
||||
return header(HttpHeader.USER_AGENT, agent);
|
||||
headers.put(HttpHeader.USER_AGENT, agent);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue