From 9ff887abaa74a6637807c98a9eb56afdf1b7275c Mon Sep 17 00:00:00 2001 From: freeinternet865 <278516354+freeinternet865@users.noreply.github.com> Date: Thu, 23 Apr 2026 20:12:06 +0330 Subject: [PATCH] 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. --- src/proxy_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy_server.rs b/src/proxy_server.rs index 684e6c5..cffc426 100644 --- a/src/proxy_server.rs +++ b/src/proxy_server.rs @@ -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.",