summaryrefslogtreecommitdiff
path: root/src/mbgl/util/url.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-01-17 15:17:33 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-01-17 17:38:57 +0100
commit4b0cb858baa7edd9510ec08ef22e53df25fb3bc2 (patch)
treeea064acfd67a28a7c4e4f1c90cd98a320abcaeca /src/mbgl/util/url.cpp
parent7983e3a67c557a0fcf118984404ea1756416b521 (diff)
downloadqtlocation-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.cpp5
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 };
}()) {