diff options
| -rw-r--r-- | RELEASE_NOTES.md | 4 | ||||
| -rw-r--r-- | xs_httpd.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index f942610..210d3cc 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | # Release Notes | 1 | # Release Notes |
| 2 | 2 | ||
| 3 | ## 2.15 | ||
| 4 | |||
| 5 | Fixed bug in message posting that may result in 400 Bad Request errors (contributed by tobyjaffey). | ||
| 6 | |||
| 3 | ## 2.14 | 7 | ## 2.14 |
| 4 | 8 | ||
| 5 | Previous posts in the public and private timelines can be reached by a "More..." post at the end (contributed by kensanata). | 9 | Previous posts in the public and private timelines can be reached by a "More..." post at the end (contributed by kensanata). |
| @@ -74,7 +74,6 @@ void *memmem(const void *, size_t, const void *, size_t); | |||
| 74 | d_char *_xs_multipart_form_data(char *payload, int p_size, char *header) | 74 | d_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; |