diff options
author | ndnuriev <ndnuriev@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 28045de07753ee182fc8e5ca778469d7a7c5bb20 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http | |
parent | 3659e5861440ac98d0380de7698601ad14655a7a (diff) | |
download | ydb-28045de07753ee182fc8e5ca778469d7a7c5bb20.tar.gz |
Restoring authorship annotation for <ndnuriev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http')
-rw-r--r-- | library/cpp/http/fetch/httpfsm.h | 2 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpfsm_ut.cpp | 4 | ||||
-rw-r--r-- | library/cpp/http/misc/httpdate.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h index 9d7e595620..c4abdcd0d2 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 bab1ceb4a9..b018e80101 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 c21e1a17d1..04876f38fe 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; } |