diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-17 15:17:33 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-01-17 17:38:57 +0100 |
commit | 4b0cb858baa7edd9510ec08ef22e53df25fb3bc2 (patch) | |
tree | ea064acfd67a28a7c4e4f1c90cd98a320abcaeca /src/mbgl/util/url.cpp | |
parent | 7983e3a67c557a0fcf118984404ea1756416b521 (diff) | |
download | qtlocation-mapboxgl-4b0cb858baa7edd9510ec08ef22e53df25fb3bc2.tar.gz |
[core] include leading slash in URL.path
Diffstat (limited to 'src/mbgl/util/url.cpp')
-rw-r--r-- | src/mbgl/util/url.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mbgl/util/url.cpp b/src/mbgl/util/url.cpp index f070135213..0a7d096ec0 100644 --- a/src/mbgl/util/url.cpp +++ b/src/mbgl/util/url.cpp @@ -107,11 +107,6 @@ URL::URL(const std::string& str) if (isData) { // Skip comma pathPos++; - } else { - // Skip optional leading slash - while (pathPos < query.first && (str[pathPos] == '/')) { - ++pathPos; - } } return { pathPos, query.first - pathPos }; }()) { |