Commit d3fecb72 authored by jan.koester's avatar jan.koester
Browse files

bugfixes

parent 5e126738
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -68,6 +68,12 @@ libhttppp::HttpUrl::HttpUrl(const std::string& url, bool http3) {
    if (http3) {
        _protocol = HttpProtocol::HTTP3;
        _port = 443;
        // Strip scheme prefix before host parsing
        if (url.rfind("https://", 0) == 0) {
            p += 8;
        } else if (url.rfind("http://", 0) == 0) {
            p += 7;
        }
    }
    // Update c_url pointer based on scheme matching
    else if (url.rfind("https://", 0) == 0) { // Using rfind for string prefix check