From 9b623ea3943165fe7efb5e47a0b5b9452c1599e6 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Wed, 9 May 2018 00:09:55 +0200 Subject: 9.8 --- wx+/http.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wx+/http.cpp') diff --git a/wx+/http.cpp b/wx+/http.cpp index fa88bb1d..1526d30f 100755 --- a/wx+/http.cpp +++ b/wx+/http.cpp @@ -33,9 +33,9 @@ public: { ZEN_ON_SCOPE_FAIL( cleanup(); /*destructor call would lead to member double clean-up!!!*/ ); - assert(!startsWith(url, L"https:", CmpAsciiNoCase())); //not supported by wxHTTP! - const std::wstring urlFmt = startsWith(url, L"http://", CmpAsciiNoCase()) || - startsWith(url, L"https://", CmpAsciiNoCase()) ? afterFirst(url, L"://", IF_MISSING_RETURN_NONE) : url; + //assert(!startsWith(url, L"https:", CmpAsciiNoCase())); //not supported by wxHTTP! + + const std::wstring urlFmt = afterFirst(url, L"://", IF_MISSING_RETURN_NONE); const std::wstring server = beforeFirst(urlFmt, L'/', IF_MISSING_RETURN_ALL); const std::wstring page = L'/' + afterFirst(urlFmt, L'/', IF_MISSING_RETURN_NONE); -- cgit