diff -r 07b815faa6ac -r f00d03835dd9 src/server/daemon/httprequest.c --- a/src/server/daemon/httprequest.c Tue Dec 30 21:44:49 2025 +0100 +++ b/src/server/daemon/httprequest.c Tue Jan 13 18:09:20 2026 +0100 @@ -70,17 +70,17 @@ int i = 0; if(uri.ptr[0] == '/') { return uri; - } else if(cx_strprefix(cx_strcast(uri), (cxstring)CX_STR("http://"))) { + } else if(cx_strprefix(uri, cx_str("http://"))) { i = 7; - } else if(cx_strprefix(cx_strcast(uri), (cxstring)CX_STR("https://"))) { + } else if(cx_strprefix(uri, cx_str("https://"))) { i = 8; - } else if(!cx_strcmp(cx_strcast(uri), (cxstring)CX_STR("*"))) { + } else if(!cx_strcmp(uri, cx_str("*"))) { return uri; } for(;ihttpv.length, rq->rq.reqpb); - if(!cx_strcmp(cx_strcast(request->httpv), (cxstring)CX_STR("HTTP/1.1"))) { + if(!cx_strcmp(request->httpv, "HTTP/1.1")) { rq->rq.protv_num = PROTOCOL_VERSION_HTTP11; - } else if(!cx_strcmp(cx_strcast(request->httpv), (cxstring)CX_STR("HTTP/1.0"))) { + } else if(!cx_strcmp(request->httpv, "HTTP/1.0")) { rq->rq.protv_num = PROTOCOL_VERSION_HTTP10; } else { // invalid protocol version - abort @@ -898,9 +898,9 @@ cxstring ct; if(path.ptr[path.length - 1] == '/') { // directory - ct = (cxstring)CX_STR("internal/directory"); + ct = cx_str("internal/directory"); } else { - ct = (cxstring)CX_STR("text/plain"); + ct = cx_str("text/plain"); } pblock_kvinsert(pb_key_content_type, ct.ptr, ct.length, rq->rq.srvhdrs);