merge of 'c6af0acc022d4fc8e24488a86ab869d7cb561f57'
and 'fafee42899e7efa42942bc451a888bf77be69ac9'
This commit is contained in:
@ -645,11 +645,11 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
|
|||||||
if (!Boolean.valueOf(getTunnel().getClientOptions().getProperty(PROP_USER_AGENT)).booleanValue()) {
|
if (!Boolean.valueOf(getTunnel().getClientOptions().getProperty(PROP_USER_AGENT)).booleanValue()) {
|
||||||
// let's not advertise to external sites that we are from I2P
|
// let's not advertise to external sites that we are from I2P
|
||||||
if (usingWWWProxy)
|
if (usingWWWProxy)
|
||||||
newRequest.append("User-Agent: Wget/1.11.4\r\n");
|
newRequest.append("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6\r\n");
|
||||||
else
|
else
|
||||||
newRequest.append("User-Agent: MYOB/6.66 (AN/ON)\r\n");
|
newRequest.append("User-Agent: MYOB/6.66 (AN/ON)\r\n");
|
||||||
}
|
}
|
||||||
newRequest.append("Connection: close\r\n\r\n");
|
newRequest.append("Connection: close\r\n\r\n");
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
newRequest.append(line).append("\r\n"); // HTTP spec
|
newRequest.append(line).append("\r\n"); // HTTP spec
|
||||||
|
Reference in New Issue
Block a user