Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed May 22, 2024
1 parent c2c0d3e commit 14bdf07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/api/url_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ boost::optional<ParsedURL> parseURL(std::string::iterator &iter, const std::stri
{
iter = iter_copy;
// TODO: find a way to do it more effective
std::string parsed_part = "/" + out.service + "/v" + std::to_string(out.version) + "/" + out.profile + "/";
std::string parsed_part =
"/" + out.service + "/v" + std::to_string(out.version) + "/" + out.profile + "/";
out.prefix_length = parsed_part.length();
return boost::make_optional(out);
}
Expand Down

0 comments on commit 14bdf07

Please sign in to comment.