diff options
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -153,7 +153,7 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea | |||
| 153 | memcpy(s1, p, q - p); | 153 | memcpy(s1, p, q - p); |
| 154 | s1[q - p] = '\0'; | 154 | s1[q - p] = '\0'; |
| 155 | 155 | ||
| 156 | if (xs_startswith(s1, "Content-Disposition")) { | 156 | if (xs_startswith(s1, "Content-Disposition") || xs_startswith(s1, "content-disposition")) { |
| 157 | /* split by " like a primitive man */ | 157 | /* split by " like a primitive man */ |
| 158 | l1 = xs_split(s1, "\""); | 158 | l1 = xs_split(s1, "\""); |
| 159 | 159 | ||
| @@ -167,7 +167,7 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea | |||
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| 169 | else | 169 | else |
| 170 | if (xs_startswith(s1, "Content-Type")) { | 170 | if (xs_startswith(s1, "Content-Type") || xs_startswith(s1, "content-type")) { |
| 171 | l1 = xs_split(s1, ":"); | 171 | l1 = xs_split(s1, ":"); |
| 172 | 172 | ||
| 173 | if (xs_list_len(l1) >= 2) { | 173 | if (xs_list_len(l1) >= 2) { |