summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-25 07:42:57 +0200
committerdefault <nobody@localhost>2022-09-25 07:42:57 +0200
commitb070d2d8f88866bf83103c34c4d86352c6b74e8d (patch)
treef3d48f9a370b92560e25cc0d96dac252ee851b96 /snac.c
parent58de0798f29d8ee29759bd4076e35702027f113d (diff)
The HTTP request headers are stored in a plain dict.
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/snac.c b/snac.c
index ba50a79..f5e23bc 100644
--- a/snac.c
+++ b/snac.c
@@ -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);