summaryrefslogtreecommitdiff
path: root/src/tipideed/responses.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-08-23 08:52:47 +0000
committerLaurent Bercot <ska@appnovation.com>2023-08-23 08:52:47 +0000
commit8d8edcd55e8601b888bf310c813d26fc328c9eaf (patch)
tree9ec9780a1952e9edcdd5f2c8ce0d7fbe76d4ce82 /src/tipideed/responses.c
parent921a959bc43275dc2a39ac3cc95b738d7ea98cf2 (diff)
downloadtipidee-8d8edcd55e8601b888bf310c813d26fc328c9eaf.tar.xz
Bound 3xx response, clean up TCPCONNNUM, fix body reading
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/responses.c')
-rw-r--r--src/tipideed/responses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipideed/responses.c b/src/tipideed/responses.c
index 02109b3..0c93582 100644
--- a/src/tipideed/responses.c
+++ b/src/tipideed/responses.c
@@ -54,7 +54,7 @@ void respond_30x (tipidee_rql const *rql, tipidee_redirection const *rd)
tain deadline ;
tipidee_response_status_line(buffer_1, rql, rsl[rd->type]) ;
tipidee_response_header_common_put_g(buffer_1, 0) ;
- buffer_putsnoflush(buffer_1, "Location: ") ;
+ buffer_putsnoflush(buffer_1, "Content-Length: 0\r\nLocation: ") ;
buffer_putsnoflush(buffer_1, rd->location) ;
if (rd->sub) buffer_putsnoflush(buffer_1, rd->sub) ;
buffer_putnoflush(buffer_1, "\r\n\r\n", 4) ;