aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorakhovrychev <akhovrychev@yandex-team.ru>2022-02-10 16:49:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:50 +0300
commitfb6895c3749017e4fe6217d7a2dd7d6f2f136403 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp
parent0142011d3740f27a2ace2224e6a5714abed48f4a (diff)
downloadydb-fb6895c3749017e4fe6217d7a2dd7d6f2f136403.tar.gz
Restoring authorship annotation for <akhovrychev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/http/fetch/httpfsm.rl62
-rw-r--r--library/cpp/uri/uri_ut.cpp30
2 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/http/fetch/httpfsm.rl6 b/library/cpp/http/fetch/httpfsm.rl6
index 2be81c7f79..eab0328b18 100644
--- a/library/cpp/http/fetch/httpfsm.rl6
+++ b/library/cpp/http/fetch/httpfsm.rl6
@@ -262,7 +262,7 @@ action set_status_303{ if (hd) hd->http_status = 303; }
url = url_char+ >clear_buf $update_buf;
loc_url = any_text_char+ >clear_buf $update_buf;
location = "location"i def loc_url eoh %set_location;
-refresh = "refresh"i def int ';' lws "url="i loc_url eoh %set_location;
+refresh = "refresh"i def int ';' lws "url="i loc_url eoh %set_location;
################# x-robots-tag ################
action set_x_robots {
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 03e18705f8..2ebd83fc93 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -884,21 +884,21 @@ namespace NUri {
URL_TEST(url, test);
}
}
- Y_UNIT_TEST(test_scheme_related_url) {
- TUri url;
- UNIT_ASSERT_VALUES_EQUAL(url.Parse("//www.hostname.ru/path", TFeature::FeaturesRobot), TState::ParsedOK);
- UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeEmpty);
- UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
- UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
-
- TUri baseUrl;
- UNIT_ASSERT_VALUES_EQUAL(baseUrl.Parse("https://trololo.com", TFeature::FeaturesRobot), TState::ParsedOK);
- UNIT_ASSERT_EQUAL(baseUrl.GetScheme(), TScheme::SchemeHTTPS);
- url.Merge(baseUrl);
- UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeHTTPS);
- UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
- UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
- }
+ Y_UNIT_TEST(test_scheme_related_url) {
+ TUri url;
+ UNIT_ASSERT_VALUES_EQUAL(url.Parse("//www.hostname.ru/path", TFeature::FeaturesRobot), TState::ParsedOK);
+ UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeEmpty);
+ UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
+ UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
+
+ TUri baseUrl;
+ UNIT_ASSERT_VALUES_EQUAL(baseUrl.Parse("https://trololo.com", TFeature::FeaturesRobot), TState::ParsedOK);
+ UNIT_ASSERT_EQUAL(baseUrl.GetScheme(), TScheme::SchemeHTTPS);
+ url.Merge(baseUrl);
+ UNIT_ASSERT_EQUAL(url.GetScheme(), TScheme::SchemeHTTPS);
+ UNIT_ASSERT_VALUES_EQUAL(url.GetHost(), "www.hostname.ru");
+ UNIT_ASSERT_VALUES_EQUAL(url.GetField(TField::FieldPath), "/path");
+ }
}
Y_UNIT_TEST_SUITE(TInvertDomainTest) {