diff options
| author | 2024-11-10 07:32:48 +0100 | |
|---|---|---|
| committer | 2024-11-10 07:32:48 +0100 | |
| commit | 33375aca905339f759207d11d19f0ef102941f5d (patch) | |
| tree | e5e5965eaab84fad7719d246715af258b2a1cfb6 | |
| parent | In the RSS description, don't convert the bio from Markdown. (diff) | |
| download | snac2-33375aca905339f759207d11d19f0ef102941f5d.tar.gz snac2-33375aca905339f759207d11d19f0ef102941f5d.tar.xz snac2-33375aca905339f759207d11d19f0ef102941f5d.zip | |
Fixed possible crash in proxy code.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3221,7 +3221,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3221 | NULL, 0, &status, body, b_size, 0); | 3221 | NULL, 0, &status, body, b_size, 0); |
| 3222 | 3222 | ||
| 3223 | if (valid_status(status)) { | 3223 | if (valid_status(status)) { |
| 3224 | const char *ct = xs_dict_get(rsp, "content-type"); | 3224 | const char *ct = xs_or(xs_dict_get(rsp, "content-type"), ""); |
| 3225 | const char *lm = xs_dict_get(rsp, "last-modified"); | 3225 | const char *lm = xs_dict_get(rsp, "last-modified"); |
| 3226 | const char *et = xs_dict_get(rsp, "etag"); | 3226 | const char *et = xs_dict_get(rsp, "etag"); |
| 3227 | 3227 | ||