From 33375aca905339f759207d11d19f0ef102941f5d Mon Sep 17 00:00:00 2001 From: default Date: Sun, 10 Nov 2024 07:32:48 +0100 Subject: [PATCH] Fixed possible crash in proxy code. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index fe14e16..dbe8ae2 100644 --- a/html.c +++ b/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");