aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authorndnuriev <ndnuriev@yandex-team.ru>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:45 +0300
commit3659e5861440ac98d0380de7698601ad14655a7a (patch)
treea8cbee25ef3f89582ff526208677df7d14c75c98 /library/cpp/http
parentbfd0aa05cabedcab6f4c4d36948dc7581e476782 (diff)
downloadydb-3659e5861440ac98d0380de7698601ad14655a7a.tar.gz
Restoring authorship annotation for <ndnuriev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http')
-rw-r--r--library/cpp/http/fetch/httpfsm.h2
-rw-r--r--library/cpp/http/fetch/httpfsm_ut.cpp4
-rw-r--r--library/cpp/http/misc/httpdate.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h
index c4abdcd0d2..9d7e595620 100644
--- a/library/cpp/http/fetch/httpfsm.h
+++ b/library/cpp/http/fetch/httpfsm.h
@@ -47,7 +47,7 @@ struct THttpHeaderParser {
THttpHeader* hd;
long I;
int Dc;
- TDateTimeFieldsDeprecated DateTimeFields;
+ TDateTimeFieldsDeprecated DateTimeFields;
char buf[FETCHER_URL_MAX];
size_t buflen;
char* lastchar;
diff --git a/library/cpp/http/fetch/httpfsm_ut.cpp b/library/cpp/http/fetch/httpfsm_ut.cpp
index b018e80101..bab1ceb4a9 100644
--- a/library/cpp/http/fetch/httpfsm_ut.cpp
+++ b/library/cpp/http/fetch/httpfsm_ut.cpp
@@ -177,7 +177,7 @@ void THttpHeaderParserTestSuite::TestProxyRequestHeader() {
UNIT_ASSERT_EQUAL(strcmp(httpRequestHeader.x_yandex_fetchoptions, "d;c"), 0);
UNIT_ASSERT_EQUAL(httpRequestHeader.max_age, 100);
UNIT_ASSERT_VALUES_EQUAL(httpRequestHeader.if_modified_since,
- TInstant::ParseIso8601Deprecated("1994-10-29 19:43:31Z").TimeT());
+ TInstant::ParseIso8601Deprecated("1994-10-29 19:43:31Z").TimeT());
UNIT_ASSERT_EQUAL(httpRequestHeader.request_uri,
"http://www.google.ru:8080/search?q=hi");
UNIT_ASSERT(httpRequestHeader.GetUrl() ==
@@ -213,7 +213,7 @@ void THttpHeaderParserTestSuite::TestLastModified() {
"Last-Modified: Thu, 13 Aug 2009 14:27:08 GMT\r\n\r\n";
UNIT_ASSERT(2 == httpHeaderParser->Execute(headers, strlen(headers)));
UNIT_ASSERT_VALUES_EQUAL(
- TInstant::ParseIso8601Deprecated("2009-08-13 14:27:08Z").TimeT(),
+ TInstant::ParseIso8601Deprecated("2009-08-13 14:27:08Z").TimeT(),
h.http_time);
TestFinish();
}
diff --git a/library/cpp/http/misc/httpdate.h b/library/cpp/http/misc/httpdate.h
index 04876f38fe..c21e1a17d1 100644
--- a/library/cpp/http/misc/httpdate.h
+++ b/library/cpp/http/misc/httpdate.h
@@ -9,7 +9,7 @@
inline time_t parse_http_date(const TStringBuf& datestring) {
try {
- return TInstant::ParseHttpDeprecated(datestring).TimeT();
+ return TInstant::ParseHttpDeprecated(datestring).TimeT();
} catch (const TDateTimeParseException&) {
return BAD_DATE;
}