forked from I2P_Developers/i2p.i2p
* EepGet: Add method to add extra headers to request
This commit is contained in:
@@ -181,7 +181,13 @@ public class I2PSocketEepGet extends EepGet {
|
||||
"Cache-control: no-cache\r\n" +
|
||||
"Pragma: no-cache\r\n" +
|
||||
"User-Agent: " + USER_AGENT + "\r\n" +
|
||||
"Connection: close\r\n\r\n");
|
||||
"Connection: close\r\n");
|
||||
if (_extraHeaders != null) {
|
||||
for (String hdr : _extraHeaders) {
|
||||
buf.append(hdr).append("\r\n");
|
||||
}
|
||||
}
|
||||
buf.append("\r\n");
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user