aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabv <abv@yandex-team.ru>2022-02-10 16:50:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:09 +0300
commit508a599920b94ffa7fecd831fcd6e355fc0b04d6 (patch)
tree70aa260dfd0daaf11dbe1bcbfceb5cacf5002bc7
parent1072ee1402b5fb9b10d1bc5fe5bf4f50b1316d41 (diff)
downloadydb-508a599920b94ffa7fecd831fcd6e355fc0b04d6.tar.gz
Restoring authorship annotation for <abv@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--library/cpp/deprecated/ya.make10
-rw-r--r--library/cpp/uri/common.cpp2
-rw-r--r--library/cpp/uri/common.h2
-rw-r--r--library/cpp/uri/uri.cpp6
-rw-r--r--library/cpp/uri/uri.h2
-rw-r--r--library/cpp/uri/uri_ut.cpp10
6 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/deprecated/ya.make b/library/cpp/deprecated/ya.make
index 6c753f68a9..de81cc8fbd 100644
--- a/library/cpp/deprecated/ya.make
+++ b/library/cpp/deprecated/ya.make
@@ -40,10 +40,10 @@ RECURSE(
parse_utils
parse_utils/ut
small_array
- solartrie
- solartrie/indexed_region/ut
- solartrie/test
- solartrie/test/tests
- solartrie/ut
+ solartrie
+ solartrie/indexed_region/ut
+ solartrie/test
+ solartrie/test/tests
+ solartrie/ut
split
)
diff --git a/library/cpp/uri/common.cpp b/library/cpp/uri/common.cpp
index 05af1e57d1..9b11bcc413 100644
--- a/library/cpp/uri/common.cpp
+++ b/library/cpp/uri/common.cpp
@@ -47,7 +47,7 @@ namespace NUri {
}
};
- }
+ }
const TSchemeInfo& TSchemeInfo::Get(const TStringBuf& scheme) {
return Registry[TSchemeInfoMap::Instance().Get(scheme)];
diff --git a/library/cpp/uri/common.h b/library/cpp/uri/common.h
index 8025357763..c8b25a725c 100644
--- a/library/cpp/uri/common.h
+++ b/library/cpp/uri/common.h
@@ -508,4 +508,4 @@ static inline ui16 DefaultPort(NUri::TScheme::EKind scheme) {
static inline NUri::TScheme::EKind SchemeKind(const TStringBuf& scheme) {
return NUri::TSchemeInfo::GetKind(scheme);
-}
+}
diff --git a/library/cpp/uri/uri.cpp b/library/cpp/uri/uri.cpp
index 56a9a4e5ef..10beb0ea42 100644
--- a/library/cpp/uri/uri.cpp
+++ b/library/cpp/uri/uri.cpp
@@ -120,8 +120,8 @@ namespace NUri {
}
return FldTryCpy(field, value);
- }
-
+ }
+
/********************************************************/
bool TUri::FldTryCpy(EField field, const TStringBuf& value) {
if (!FldIsDirty(field)) {
@@ -158,7 +158,7 @@ namespace NUri {
if (FldIsSet(fld))
len += 1 + Fields[fld].length();
}
-
+
if (!len)
Buffer.Clear();
else {
diff --git a/library/cpp/uri/uri.h b/library/cpp/uri/uri.h
index 3b6c19fe4a..f6a7424951 100644
--- a/library/cpp/uri/uri.h
+++ b/library/cpp/uri/uri.h
@@ -623,4 +623,4 @@ Y_DECLARE_OUT_SPEC(inline, NUri::TUri, out, url) {
Y_DECLARE_OUT_SPEC(inline, NUri::TUri::TLinkType, out, t) {
out << NUri::LinkTypeToString(t);
-}
+}
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 2ebd83fc93..4ea34a1be9 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -221,7 +221,7 @@ namespace NUri {
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 443);
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "https://www.host.com/script.cgi?param1=value1&param2=value2");
}
-
+
// change scheme with non-default port
{
TUri parsedUrl;
@@ -231,14 +231,14 @@ namespace NUri {
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "https://www.host.com:8080/script.cgi?param1=value1&param2=value2");
}
}
-
+
Y_UNIT_TEST(test_httpURLAuth) {
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://@www.host.com/path", TFeature::FeaturesRobot);
UNIT_ASSERT_VALUES_EQUAL(st, TState::ParsedBadAuth);
}
-
+
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://loginwithnopass@www.host.com/path", TFeature::FeatureAuthSupported);
@@ -247,7 +247,7 @@ namespace NUri {
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldUser), "loginwithnopass");
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldPass), "");
}
-
+
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://login:pass@www.host.com/path", TFeature::FeatureAuthSupported);
@@ -257,7 +257,7 @@ namespace NUri {
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldPass), "pass");
}
}
-
+
Y_UNIT_TEST(test01) {
TTest test = {
"user:pass@host:8080", TFeature::FeaturesAll, TState::ParsedRootless, "user", "", "", "", 0, "", "", ""};