aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/location.cpp
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commitcde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch)
treed3349caea4095825a55b5ba24fe758067b29ce6f /library/cpp/uri/location.cpp
parent9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff)
downloadydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/location.cpp')
-rw-r--r--library/cpp/uri/location.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/uri/location.cpp b/library/cpp/uri/location.cpp
index a6a4d11ffa..e5df7a3858 100644
--- a/library/cpp/uri/location.cpp
+++ b/library/cpp/uri/location.cpp
@@ -1,15 +1,15 @@
-#include "location.h"
-#include "uri.h"
-
-namespace NUri {
+#include "location.h"
+#include "uri.h"
+
+namespace NUri {
static const int URI_PARSE_FLAGS =
(TFeature::FeaturesRecommended | TFeature::FeatureConvertHostIDN | TFeature::FeatureEncodeExtendedDelim | TFeature::FeatureEncodePercent) & ~TFeature::FeatureHashBangToEscapedFragment;
-
+
TString ResolveRedirectLocation(const TStringBuf& baseUrl,
const TStringBuf& location) {
TUri baseUri;
TUri locationUri;
-
+
// Parse base URL.
if (baseUri.Parse(baseUrl, URI_PARSE_FLAGS) != NUri::TState::ParsedOK) {
return "";
@@ -26,6 +26,6 @@ namespace NUri {
TString res;
locationUri.Print(res, NUri::TField::FlagAllFields);
return res;
- }
-
-}
+ }
+
+}