summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-05-05 14:55:02 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-05-05 15:05:56 (GMT)
commita9fb306a1cf1308a3f8b9bb12ed01aed1f6f6f8d (patch)
treefa4088448a417c5dcb795fd9ed23dfbad8c414e8 /src/network
parentebddf7a8739d7f4aaa7d9cb8a41a14eebb65e4f4 (diff)
downloadQt-a9fb306a1cf1308a3f8b9bb12ed01aed1f6f6f8d.zip
Qt-a9fb306a1cf1308a3f8b9bb12ed01aed1f6f6f8d.tar.gz
Qt-a9fb306a1cf1308a3f8b9bb12ed01aed1f6f6f8d.tar.bz2
[QNAM FTP] Check for the "ftp" scheme case-insensitively
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkaccessftpbackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkaccessftpbackend.cpp b/src/network/access/qnetworkaccessftpbackend.cpp
index 1a59011..da336d0 100644
--- a/src/network/access/qnetworkaccessftpbackend.cpp
+++ b/src/network/access/qnetworkaccessftpbackend.cpp
@@ -77,7 +77,7 @@ QNetworkAccessFtpBackendFactory::create(QNetworkAccessManager::Operation op,
}
QUrl url = request.url();
- if (url.scheme() == QLatin1String("ftp"))
+ if (url.scheme().compare(QLatin1String("ftp"), Qt::CaseInsensitive) == 0)
return new QNetworkAccessFtpBackend;
return 0;
}