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:
freeinternet865
2026-04-23 20:12:06 +03:30
committed by GitHub
parent 1d5d13d63d
commit 9ff887abaa
+1 -1
View File
@@ -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.",