Loading src/http.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -68,6 +68,12 @@ libhttppp::HttpUrl::HttpUrl(const std::string& url, bool http3) { if (http3) { if (http3) { _protocol = HttpProtocol::HTTP3; _protocol = HttpProtocol::HTTP3; _port = 443; _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 // Update c_url pointer based on scheme matching else if (url.rfind("https://", 0) == 0) { // Using rfind for string prefix check else if (url.rfind("https://", 0) == 0) { // Using rfind for string prefix check Loading Loading
src/http.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -68,6 +68,12 @@ libhttppp::HttpUrl::HttpUrl(const std::string& url, bool http3) { if (http3) { if (http3) { _protocol = HttpProtocol::HTTP3; _protocol = HttpProtocol::HTTP3; _port = 443; _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 // Update c_url pointer based on scheme matching else if (url.rfind("https://", 0) == 0) { // Using rfind for string prefix check else if (url.rfind("https://", 0) == 0) { // Using rfind for string prefix check Loading