summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-10 14:49:26 +0100
committerdefault <nobody@localhost>2022-12-10 14:49:26 +0100
commit7336a8ee3e398d7c7981d1ee247a837f48684446 (patch)
tree56f3ee147779173d569f4b1614636cd0c67dd7c5 /xs_httpd.h
parent1de96f2565174848ebd72f37717979370c60f22e (diff)
Updated RELEASE_NOTES.
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);
d_char *_xs_multipart_form_data(char *payload, int p_size, char *header)
/* parses a multipart/form-data payload */
{
- d_char *p_vars = xs_dict_new();
xs *boundary = NULL;
int offset = 0;
int bsz;
@@ -92,6 +91,8 @@ d_char *_xs_multipart_form_data(char *payload, int p_size, char *header)
bsz = strlen(boundary);
+ d_char *p_vars = xs_dict_new();
+
/* iterate searching the boundaries */
while ((p = memmem(payload + offset, p_size - offset, boundary, bsz)) != NULL) {
xs *s1 = NULL;