aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/url/url.cpp
diff options
context:
space:
mode:
authorolegator <olegator@yandex-team.ru>2022-02-10 16:49:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:55 +0300
commit553b4d1ea5e01ab98a8cfa8e3cfed79a0a93972d (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/url/url.cpp
parent971cfa1c440a14ae8352b1dbf29a884fea7536db (diff)
downloadydb-553b4d1ea5e01ab98a8cfa8e3cfed79a0a93972d.tar.gz
Restoring authorship annotation for <olegator@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.cpp')
-rw-r--r--library/cpp/string_utils/url/url.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp
index 38fab59416..85f4ac5d69 100644
--- a/library/cpp/string_utils/url/url.cpp
+++ b/library/cpp/string_utils/url/url.cpp
@@ -182,18 +182,18 @@ TStringBuf GetSchemeHostAndPort(const TStringBuf url, bool trimHttp, bool trimDe
}
}
-void SplitUrlToHostAndPath(const TStringBuf url, TStringBuf& host, TStringBuf& path) {
+void SplitUrlToHostAndPath(const TStringBuf url, TStringBuf& host, TStringBuf& path) {
auto [hostBuf, pathBuf] = NUrl::SplitUrlToHostAndPath(url);
host = hostBuf;
path = pathBuf;
-}
-
-void SplitUrlToHostAndPath(const TStringBuf url, TString& host, TString& path) {
+}
+
+void SplitUrlToHostAndPath(const TStringBuf url, TString& host, TString& path) {
auto [hostBuf, pathBuf] = NUrl::SplitUrlToHostAndPath(url);
host = hostBuf;
path = pathBuf;
-}
-
+}
+
void SeparateUrlFromQueryAndFragment(const TStringBuf url, TStringBuf& sanitizedUrl, TStringBuf& query, TStringBuf& fragment) {
TStringBuf urlWithoutFragment;
if (!url.TrySplit('#', urlWithoutFragment, fragment)) {