summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-30 08:52:56 +0300
committerPaul Buetow <paul@buetow.org>2026-06-30 08:52:56 +0300
commit85dcf059333ce65930085fa6a0600aab871d6f44 (patch)
tree07571d0fa0905be63acf5e0f9eeadb5365b6a795
parentf387bace8dab1e4b7336b4a69c8b2fc8bd80b3f6 (diff)
reqp: write the built HTTP/1.1 header+body back to p_response
parse() constructed the full 'HTTP/1.1 200 OK ... Content-Length ... Content-Type' response into a local s_resp but never assigned it back, so the socket writer sent only the body (HTTP/0.9-style). Traefik/proxies 500'd on these responses. This makes ychat emit proper HTTP/1.1 responses so the f3s ingress can proxy it.
-rw-r--r--ychat/src/reqp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ychat/src/reqp.cpp b/ychat/src/reqp.cpp
index fbf794f..74b2110 100644
--- a/ychat/src/reqp.cpp
+++ b/ychat/src/reqp.cpp
@@ -155,6 +155,7 @@ reqp::parse(context *p_context)
s_http_cotype_add + "\r\n" );
s_resp.append(*p_response);
+ *p_response = s_resp;
// }
}