not setting userAgent from Constructor as default for following calls

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7676 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
sixcooler 14 years ago
parent d8e934c085
commit 4eb9c1e7c3

@ -109,14 +109,14 @@ public class HTTPClient {
super();
}
public HTTPClient(final String defaultAgent) {
public HTTPClient(final String userAgent) {
super();
HttpProtocolParams.setUserAgent(httpClient.getParams(), defaultAgent);
this.userAgent = userAgent;
}
public HTTPClient(final String defaultAgent, final int timeout) {
public HTTPClient(final String userAgent, final int timeout) {
super();
HttpProtocolParams.setUserAgent(httpClient.getParams(), defaultAgent);
this.userAgent = userAgent;
this.timeout = timeout;
}

Loading…
Cancel
Save