mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-18 07:34:36 +03:00
proxy: fix google_only plain HTTP content length (#70)
Body is exactly 120 bytes; header was advertising 128. Some clients treat that as truncated and hang waiting for extra bytes. Regression from #62.
This commit is contained in:
+1
-1
@@ -377,7 +377,7 @@ async fn handle_http_client(
|
||||
.write_all(
|
||||
b"HTTP/1.1 502 Bad Gateway\r\n\
|
||||
Content-Type: text/plain; charset=utf-8\r\n\
|
||||
Content-Length: 128\r\n\
|
||||
Content-Length: 120\r\n\
|
||||
Connection: close\r\n\r\n\
|
||||
google_only mode: plain HTTP proxy requests are not supported. \
|
||||
Browse https over CONNECT, or switch to apps_script mode.",
|
||||
|
||||
Reference in New Issue
Block a user