Commit 4e34d921 authored by Dominik Charousset's avatar Dominik Charousset

Fix assembly of the path component

parent c0ef7a0c
...@@ -63,7 +63,7 @@ void uri_impl::assemble_str() { ...@@ -63,7 +63,7 @@ void uri_impl::assemble_str() {
str += std::to_string(authority.port); str += std::to_string(authority.port);
} }
if (!path.empty()) { if (!path.empty()) {
addr += '/'; str += '/';
add_encoded(path, true); add_encoded(path, true);
} }
} }
...@@ -76,8 +76,7 @@ void uri_impl::assemble_str() { ...@@ -76,8 +76,7 @@ void uri_impl::assemble_str() {
add_encoded(kvp.second); add_encoded(kvp.second);
}; };
add_kvp(*i); add_kvp(*i);
++i; for (++i; i != query.end(); ++i) {
for (; i != query.end(); ++i) {
str += '&'; str += '&';
add_kvp(*i); add_kvp(*i);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment