Make QUrl always lowercase the scheme().
authorDavid Faure <faure@kde.org>
Tue, 24 Jan 2012 13:51:51 +0000 (14:51 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 14:27:08 +0000 (15:27 +0100)
commit84bdb7b61f79402b238e903fc18fd62e565e1563
tree06652ad1d26b146c1221427c2661ac174935b7d8
parent0e06e47a0b37c3741a9501980e743530aab538d0
Make QUrl always lowercase the scheme().

URL schemes can only contain alphanumeric characters and all
protocols specify that they are case-insensitive. So instead
of doing case-insensitive comparison everywhere and then get
it wrong sometimes, better to lower-case it here.

Change-Id: I61f51a3f4c85b90af1586ebcf69608987fbe2ec3
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/io/qurl.cpp
tests/auto/corelib/io/qurl/tst_qurl.cpp