Fixed issue caused by the fix to #447746: user agent header must not

be added, but overwritten.
This commit is contained in:
Simone Bordet 2014-10-23 12:41:16 +02:00
parent 84b38aba15
commit f7baf9923f
1 changed files with 2 additions and 1 deletions

View File

@ -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