diff options
| author | 2025-01-05 08:06:14 +0100 | |
|---|---|---|
| committer | 2025-01-05 08:06:14 +0100 | |
| commit | b7ab926c25c27285fd6eb6e31258dc57979b157d (patch) | |
| tree | 1883e1ea901d20efc1d26fc47ed984d98cc1a40e /httpd.c | |
| parent | Updated TODO. (diff) | |
| download | penes-snac2-b7ab926c25c27285fd6eb6e31258dc57979b157d.tar.gz penes-snac2-b7ab926c25c27285fd6eb6e31258dc57979b157d.tar.xz penes-snac2-b7ab926c25c27285fd6eb6e31258dc57979b157d.zip | |
More /share tweaks.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -301,7 +301,10 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 301 | s = xs_fmt("%s\n", text); | 301 | s = xs_fmt("%s\n", text); |
| 302 | } | 302 | } |
| 303 | else | 303 | else |
| 304 | if (xs_type(url) == XSTYPE_STRING) | ||
| 304 | s = xs_fmt("%s\n", url); | 305 | s = xs_fmt("%s\n", url); |
| 306 | else | ||
| 307 | s = xs_str_new(NULL); | ||
| 305 | 308 | ||
| 306 | status = HTTP_STATUS_OK; | 309 | status = HTTP_STATUS_OK; |
| 307 | *ctype = "text/html"; | 310 | *ctype = "text/html"; |