mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More error testing in srv_archive().
This commit is contained in:
parent
8f738e1417
commit
1834dc57b0
1 changed files with 3 additions and 3 deletions
6
snac.c
6
snac.c
|
@ -163,8 +163,8 @@ void srv_archive(char *direction, char *req, char *payload, int p_size,
|
|||
}
|
||||
|
||||
if (p_size && payload) {
|
||||
xs *payload_fn;
|
||||
xs *payload_fn_raw;
|
||||
xs *payload_fn = NULL;
|
||||
xs *payload_fn_raw = NULL;
|
||||
char *v = xs_dict_get(req, "content-type");
|
||||
|
||||
if (v && xs_str_in(v, "json") != -1) {
|
||||
|
@ -195,7 +195,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size,
|
|||
}
|
||||
|
||||
if (b_size && body) {
|
||||
xs *body_fn;
|
||||
xs *body_fn = NULL;
|
||||
char *v = xs_dict_get(headers, "content-type");
|
||||
|
||||
if (v && xs_str_in(v, "json") != -1) {
|
||||
|
|
Loading…
Reference in a new issue