commit b7ab926

default  ·  2025-01-05 07:06:14 +0000 UTC
parent 9bf6ef7
More /share tweaks.
1 files changed,  +3, -0
+3, -0
 1@@ -301,7 +301,10 @@ int server_get_handler(xs_dict *req, const char *q_path,
 2                 s = xs_fmt("%s\n", text);
 3         }
 4         else
 5+        if (xs_type(url) == XSTYPE_STRING)
 6             s = xs_fmt("%s\n", url);
 7+        else
 8+            s = xs_str_new(NULL);
 9 
10         status = HTTP_STATUS_OK;
11         *ctype = "text/html";