diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | 6170310e8721e225f64ddabf7a7358253d7a1249 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/uri/location.cpp | |
parent | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff) | |
download | ydb-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.cpp | 18 |
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; - } - -} + } + +} |