diff options
| author | 2022-09-26 13:06:15 +0200 | |
|---|---|---|
| committer | 2022-09-26 13:06:15 +0200 | |
| commit | 1834dc57b0209b9e88c4efafd05ff996587aa96a (patch) | |
| tree | ada5a50adbb8ca6d31a53afa1eb8498b45cbc758 /snac.c | |
| parent | Serve the actor as the correct content-type. (diff) | |
| download | penes-snac2-1834dc57b0209b9e88c4efafd05ff996587aa96a.tar.gz penes-snac2-1834dc57b0209b9e88c4efafd05ff996587aa96a.tar.xz penes-snac2-1834dc57b0209b9e88c4efafd05ff996587aa96a.zip | |
More error testing in srv_archive().
Diffstat (limited to 'snac.c')
| -rw-r--r-- | snac.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -163,8 +163,8 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, | |||
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | if (p_size && payload) { | 165 | if (p_size && payload) { |
| 166 | xs *payload_fn; | 166 | xs *payload_fn = NULL; |
| 167 | xs *payload_fn_raw; | 167 | xs *payload_fn_raw = NULL; |
| 168 | char *v = xs_dict_get(req, "content-type"); | 168 | char *v = xs_dict_get(req, "content-type"); |
| 169 | 169 | ||
| 170 | if (v && xs_str_in(v, "json") != -1) { | 170 | if (v && xs_str_in(v, "json") != -1) { |
| @@ -195,7 +195,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, | |||
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | if (b_size && body) { | 197 | if (b_size && body) { |
| 198 | xs *body_fn; | 198 | xs *body_fn = NULL; |
| 199 | char *v = xs_dict_get(headers, "content-type"); | 199 | char *v = xs_dict_get(headers, "content-type"); |
| 200 | 200 | ||
| 201 | if (v && xs_str_in(v, "json") != -1) { | 201 | if (v && xs_str_in(v, "json") != -1) { |