diff options
author | default <nobody@localhost> | 2022-09-25 07:42:57 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-25 07:42:57 +0200 |
commit | b070d2d8f88866bf83103c34c4d86352c6b74e8d (patch) | |
tree | f3d48f9a370b92560e25cc0d96dac252ee851b96 /snac.c | |
parent | 58de0798f29d8ee29759bd4076e35702027f113d (diff) |
The HTTP request headers are stored in a plain dict.
Diffstat (limited to 'snac.c')
-rw-r--r-- | snac.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -163,8 +163,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, if (p_size && payload) { xs *payload_fn; - char *h = xs_dict_get(req, "headers"); - char *v = xs_dict_get(h, "content-type"); + char *v = xs_dict_get(req, "content-type"); if (v && xs_str_in(v, "json") != -1) { payload_fn = xs_fmt("%s/payload.json", dir); |