src/server/proxy/httpclient.c

changeset 726
5ad3bda4aca1
parent 722
12fb6b33418c
--- a/src/server/proxy/httpclient.c	Sat Mar 07 23:26:02 2026 +0100
+++ b/src/server/proxy/httpclient.c	Sat Mar 07 23:35:16 2026 +0100
@@ -275,10 +275,11 @@
         return 1;
     }
     
-    if(client->method) {
+    if(!client->method) {
         cxBufferPutString(&buf, "GET ");
     } else {
         cxBufferPutString(&buf, client->method);
+        cxBufferPut(&buf, ' ');
     }
     cxBufferPutString(&buf, client->uri ? client->uri : "/");
     cxBufferPutString(&buf, " HTTP/1.1\r\n");

mercurial