aboutsummaryrefslogtreecommitdiffstats
path: root/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'proxy')
-rw-r--r--proxy/proxy_http_rewriter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy/proxy_http_rewriter.c b/proxy/proxy_http_rewriter.c
index afd929c..7645ecc 100644
--- a/proxy/proxy_http_rewriter.c
+++ b/proxy/proxy_http_rewriter.c
@@ -751,6 +751,12 @@ rewrite_connection_read_body( RewriteConnection* conn, int fd )
root->name, length);
return DATA_ERROR;
}
+ /* proxy_connection_receive_line() did remove the
+ * trailing \r\n, but we must preserve it when we
+ * send the chunk size to the proxy.
+ */
+ stralloc_add_str(root->str, "\r\n");
+
conn->chunk_length = length;
conn->chunk_total = 0;
if (length == 0) {