mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 01:25:04 +00:00
Fixed possible crash in proxy code.
This commit is contained in:
parent
a657274d4e
commit
33375aca90
1 changed files with 1 additions and 1 deletions
2
html.c
2
html.c
|
@ -3221,7 +3221,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
|
|||
NULL, 0, &status, body, b_size, 0);
|
||||
|
||||
if (valid_status(status)) {
|
||||
const char *ct = xs_dict_get(rsp, "content-type");
|
||||
const char *ct = xs_or(xs_dict_get(rsp, "content-type"), "");
|
||||
const char *lm = xs_dict_get(rsp, "last-modified");
|
||||
const char *et = xs_dict_get(rsp, "etag");
|
||||
|
||||
|
|
Loading…
Reference in a new issue