[core] include leading slash in URL.path

This commit is contained in:
Konstantin Käfer
2017-01-17 15:17:33 +01:00
parent 7983e3a67c
commit 4b0cb858ba
3 changed files with 30 additions and 35 deletions

View File

@@ -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 };
}()) {