summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_httpd.h')
-rw-r--r--xs_httpd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 09dce0d..89ab57a 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -74,7 +74,6 @@ void *memmem(const void *, size_t, const void *, size_t);
74d_char *_xs_multipart_form_data(char *payload, int p_size, char *header) 74d_char *_xs_multipart_form_data(char *payload, int p_size, char *header)
75/* parses a multipart/form-data payload */ 75/* parses a multipart/form-data payload */
76{ 76{
77 d_char *p_vars = xs_dict_new();
78 xs *boundary = NULL; 77 xs *boundary = NULL;
79 int offset = 0; 78 int offset = 0;
80 int bsz; 79 int bsz;
@@ -92,6 +91,8 @@ d_char *_xs_multipart_form_data(char *payload, int p_size, char *header)
92 91
93 bsz = strlen(boundary); 92 bsz = strlen(boundary);
94 93
94 d_char *p_vars = xs_dict_new();
95
95 /* iterate searching the boundaries */ 96 /* iterate searching the boundaries */
96 while ((p = memmem(payload + offset, p_size - offset, boundary, bsz)) != NULL) { 97 while ((p = memmem(payload + offset, p_size - offset, boundary, bsz)) != NULL) {
97 xs *s1 = NULL; 98 xs *s1 = NULL;