diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-04-04 15:59:22 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-04-05 13:32:13 +0300 |
commit | 60b34c25c0d62bdfd4ffde1a10784987af364aa5 (patch) | |
tree | a5fde616c141a0d961af103cc9dcef8a7d3b834c /coding | |
parent | d3256769d6ca546d3a5f083861942056a9f5d1d1 (diff) |
Review fixes.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/uri.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coding/uri.cpp b/coding/uri.cpp index 4894e7df9f..46b3b2ef32 100644 --- a/coding/uri.cpp +++ b/coding/uri.cpp @@ -2,7 +2,7 @@ #include "coding/url_encode.hpp" #include "base/assert.hpp" - +#include "base/string_utils.hpp" namespace url_scheme { @@ -53,7 +53,7 @@ bool Uri::ForEachKeyValue(TCallback const & callback) const size_t const count = m_url.size(); size_t const queryStart = m_queryStart; - // Just a URL without parametrs. + // Just a URL without parameters. if (queryStart == count) return false; @@ -77,6 +77,7 @@ bool Uri::ForEachKeyValue(TCallback const & callback) const else key = UrlDecode(m_url.substr(start, end - start)); + strings::AsciiToLower(key); if (!callback(key, value)) return false; } |