mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-12-05 02:44:36 +00:00
Support websocket connections over HTTP proxy
This commit is contained in:
1 parent
80ffe13f3e
commit
f617b27110
2 files changed
+8
-2
No files matched your search
@@ -219,7 +219,9 @@ namespace proxy {
|
||||
/* replace headers */
|
||||
req.UpdateHeader("User-Agent", "MYOB/6.66 (AN/ON)");
|
||||
/* add headers */
|
||||
req.UpdateHeader("Connection", "close"); /* keep-alive conns not supported yet */
|
||||
auto h = req.GetHeader ("Connection");
|
||||
if (h.find("upgrade") == std::string::npos && h.find("Upgrade") == std::string::npos)
|
||||
req.UpdateHeader("Connection", "close"); /* close everything, except websocket */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user