Commit 0babb782 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent ba142d68
...@@ -130,8 +130,9 @@ void read_uri(State& ps, Consumer&& consumer) { ...@@ -130,8 +130,9 @@ void read_uri(State& ps, Consumer&& consumer) {
return res; return res;
}; };
// Allowed character sets. // Allowed character sets.
auto path_char auto path_char = [](char c) {
= [](char c) { return uri_unprotected_char(c) || c == '/' || c == ':'; }; return uri_unprotected_char(c) || c == '/' || c == ':';
};
// Utility setters for avoiding code duplication. // Utility setters for avoiding code duplication.
auto set_path = [&] { consumer.path(take_str()); }; auto set_path = [&] { consumer.path(take_str()); };
auto set_host = [&] { consumer.host(take_str()); }; auto set_host = [&] { consumer.host(take_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