diff options
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, | |||
| 163 | 163 | ||
| 164 | if (p_size && payload) { | 164 | if (p_size && payload) { |
| 165 | xs *payload_fn; | 165 | xs *payload_fn; |
| 166 | char *h = xs_dict_get(req, "headers"); | 166 | char *v = xs_dict_get(req, "content-type"); |
| 167 | char *v = xs_dict_get(h, "content-type"); | ||
| 168 | 167 | ||
| 169 | if (v && xs_str_in(v, "json") != -1) { | 168 | if (v && xs_str_in(v, "json") != -1) { |
| 170 | payload_fn = xs_fmt("%s/payload.json", dir); | 169 | payload_fn = xs_fmt("%s/payload.json", dir); |