snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit b7ab926c25c27285fd6eb6e31258dc57979b157d
parent 9bf6ef7d6436f2cdd44aee7b647361b247c0f5cc
Author: default <nobody@localhost>
Date:   Sun,  5 Jan 2025 08:06:14 +0100

More /share tweaks.

Diffstat:
Mhttpd.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/httpd.c b/httpd.c @@ -301,7 +301,10 @@ int server_get_handler(xs_dict *req, const char *q_path, s = xs_fmt("%s\n", text); } else + if (xs_type(url) == XSTYPE_STRING) s = xs_fmt("%s\n", url); + else + s = xs_str_new(NULL); status = HTTP_STATUS_OK; *ctype = "text/html";