summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2025-02-06 10:48:15 +0100
committerGravatar default2025-02-06 10:48:22 +0100
commit2bfbe6215f849c1b8af3df88d33e34dcc572844c (patch)
tree3d5747d75b60cf85c50b942aaf4c589cfc974727
parentMerge pull request 'Rewrite http header parsing' (#298) from inz/snac2:http-h... (diff)
downloadpenes-snac2-2bfbe6215f849c1b8af3df88d33e34dcc572844c.tar.gz
penes-snac2-2bfbe6215f849c1b8af3df88d33e34dcc572844c.tar.xz
penes-snac2-2bfbe6215f849c1b8af3df88d33e34dcc572844c.zip
Fixed bug in xs_httpd_request().
-rw-r--r--xs_httpd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 8aec996..4cc8263 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -71,7 +71,7 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
71 71
72 *cnt++ = '\0'; 72 *cnt++ = '\0';
73 cnt += strspn(cnt, " \r\n\t\v\f"); 73 cnt += strspn(cnt, " \r\n\t\v\f");
74 xs_rstrip_chars_i(l, " \r\n\t\v\f"); 74 l = xs_rstrip_chars_i(l, " \r\n\t\v\f");
75 75
76 if (!xs_is_string(cnt)) 76 if (!xs_is_string(cnt))
77 continue; 77 continue;