Commit 14f7489e authored by Joseph Noir's avatar Joseph Noir

Fix formatting

parent 61f3da06
......@@ -26,7 +26,8 @@ namespace detail {
// Escapes all reserved characters according to RFC 3986 in `x` and
// adds the encoded string to `str`.
void append_percent_encoded(std::string& str, string_view x, bool is_path = false);
void append_percent_encoded(std::string& str, string_view x,
bool is_path = false);
} // namespace detail
} // namespace caf
......@@ -121,8 +121,7 @@ std::string to_string(const uri::authority_type& x) {
},
[&](const std::string& host) {
detail::append_percent_encoded(str, host);
}
);
});
visit(f, x.host);
if (x.port != 0) {
str += ':';
......
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