mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Backport from xs.
This commit is contained in:
parent
d55db28390
commit
11a89ef0f9
2 changed files with 3 additions and 3 deletions
|
@ -236,12 +236,12 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
|
||||||
|
|
||||||
v = xs_dict_get(req, "content-type");
|
v = xs_dict_get(req, "content-type");
|
||||||
|
|
||||||
if (v && strcmp(v, "application/x-www-form-urlencoded") == 0) {
|
if (*payload && v && strcmp(v, "application/x-www-form-urlencoded") == 0) {
|
||||||
xs *upl = xs_url_dec(*payload);
|
xs *upl = xs_url_dec(*payload);
|
||||||
p_vars = xs_url_vars(upl);
|
p_vars = xs_url_vars(upl);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (v && xs_startswith(v, "multipart/form-data")) {
|
if (*payload && v && xs_startswith(v, "multipart/form-data")) {
|
||||||
p_vars = _xs_multipart_form_data(*payload, *p_size, v);
|
p_vars = _xs_multipart_form_data(*payload, *p_size, v);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/* ff134685f4cb4096c6fce0a2a946be2663ff196e */
|
/* a885c7cc4c8e6384ae23125ed05f434471ccc6fb */
|
||||||
|
|
Loading…
Reference in a new issue