summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_response_header_writeall.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-27 14:33:26 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-27 14:33:26 +0000
commitffd8df879dea5b306b1a1615c2eabe0d463a3a3b (patch)
tree278ef36a856c2ddc756a1474d69906be7dfbf316 /src/libtipidee/tipidee_response_header_writeall.c
parentd05b3963381a4cd0329bced938d79a23bb392658 (diff)
downloadtipidee-ffd8df879dea5b306b1a1615c2eabe0d463a3a3b.tar.xz
custom-headers revamp, can be removed now
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_response_header_writeall.c')
-rw-r--r--src/libtipidee/tipidee_response_header_writeall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_response_header_writeall.c b/src/libtipidee/tipidee_response_header_writeall.c
index a61a80d..b94578d 100644
--- a/src/libtipidee/tipidee_response_header_writeall.c
+++ b/src/libtipidee/tipidee_response_header_writeall.c
@@ -11,6 +11,7 @@ size_t tipidee_response_header_writeall (buffer *b, tipidee_response_header cons
if (options & 1) m += buffer_putsnoflush(b, "Connection: close\r\n") ;
for (uint32_t i = 0 ; i < rhdrn ; i++)
{
+ if (!rhdr[i].value) continue ;
m += buffer_putsnoflush(b, rhdr[i].key) ;
m += buffer_putnoflush(b, ": ", 2) ;
m += buffer_putsnoflush(b, rhdr[i].value) ;