Use more readable case-insensitive comparison function
IsSameAs(..., false) is not very clear, while CmpNoCase() hopefully is. No real changes.
This commit is contained in:
@@ -239,7 +239,7 @@ void wxWebRequestWinHTTP::Start()
|
|||||||
{
|
{
|
||||||
// Parse the URL
|
// Parse the URL
|
||||||
wxURI uri(m_url);
|
wxURI uri(m_url);
|
||||||
bool isSecure = uri.GetScheme().IsSameAs("HTTPS", false);
|
const bool isSecure = uri.GetScheme().CmpNoCase("HTTPS") == 0;
|
||||||
|
|
||||||
int port;
|
int port;
|
||||||
if ( !uri.HasPort() )
|
if ( !uri.HasPort() )
|
||||||
|
Reference in New Issue
Block a user