Browse Source

Fixed bug in xs_httpd_request().

default 1 month ago
parent
commit
2bfbe6215f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xs_httpd.h

+ 1 - 1
xs_httpd.h

@@ -71,7 +71,7 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
 
         *cnt++ = '\0';
         cnt += strspn(cnt, " \r\n\t\v\f");
-        xs_rstrip_chars_i(l, " \r\n\t\v\f");
+        l = xs_rstrip_chars_i(l, " \r\n\t\v\f");
 
         if (!xs_is_string(cnt))
             continue;