forked from I2P_Developers/i2p.i2p
SSLEepGet: Send Host header to HTTPS proxy
ref: RFC 2617 sec. 5.2
This commit is contained in:
@@ -957,7 +957,8 @@ public class SSLEepGet extends EepGet {
|
||||
_proxyIn = _proxy.getInputStream();
|
||||
_proxyOut = _proxy.getOutputStream();
|
||||
StringBuilder buf = new StringBuilder(64);
|
||||
buf.append("CONNECT ").append(host).append(':').append(port).append(" HTTP/1.1\r\n");
|
||||
buf.append("CONNECT ").append(host).append(':').append(port).append(" HTTP/1.1\r\n" +
|
||||
"Host: ").append(host).append(':').append(port).append("\r\n");
|
||||
// TODO if we need extra headers to the proxy, add a new method and list.
|
||||
// Standard extra headers go the server, not the proxy
|
||||
//if (_extraPHeaders != null) {
|
||||
|
||||
Reference in New Issue
Block a user