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
commit6170310e8721e225f64ddabf7a7358253d7a1249 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/uri/location.cpp
parentcde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff)
downloadydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 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 e5df7a3858..a6a4d11ffa 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;
- }
-
-}
+ }
+
+}