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
|
@Override
|
||||||
public Request agent(String agent)
|
public Request agent(String agent)
|
||||||
{
|
{
|
||||||
return header(HttpHeader.USER_AGENT, agent);
|
headers.put(HttpHeader.USER_AGENT, agent);
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue