summaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/httpfsm_ut.cpp
diff options
context:
space:
mode:
authorvlid <[email protected]>2022-02-10 16:49:50 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:50 +0300
commitd331afa299a67de4e1afaf388f4edd5584a3c92f (patch)
tree35e53cf9b47fac5c3cb6f2bf6c7195eb1e41ee0a /library/cpp/http/fetch/httpfsm_ut.cpp
parente01af096d5cd7baca583319f1473a2a2c993ec86 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm_ut.cpp')
-rw-r--r--library/cpp/http/fetch/httpfsm_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/http/fetch/httpfsm_ut.cpp b/library/cpp/http/fetch/httpfsm_ut.cpp
index b018e80101b..ba5a011e0bd 100644
--- a/library/cpp/http/fetch/httpfsm_ut.cpp
+++ b/library/cpp/http/fetch/httpfsm_ut.cpp
@@ -60,7 +60,7 @@ public:
void TestRelCanonical();
void TestHreflang();
void TestHreflangOnLongInput();
- void TestMimeType();
+ void TestMimeType();
void TestRepeatedContentEncoding();
};
@@ -447,20 +447,20 @@ void THttpHeaderParserTestSuite::TestRequestHeaderOnResponse() {
TestFinish();
}
-void THttpHeaderParserTestSuite::TestMimeType() {
- TestStart();
- THttpHeader httpHeader;
- httpHeaderParser->Init(&httpHeader);
+void THttpHeaderParserTestSuite::TestMimeType() {
+ TestStart();
+ THttpHeader httpHeader;
+ httpHeaderParser->Init(&httpHeader);
const char* headers =
- "HTTP/1.1 200 OK\r\n"
- "Content-Type: application/json; charset=utf-8\r\n\r\n";
- i32 result = httpHeaderParser->Execute(headers, strlen(headers));
- UNIT_ASSERT_EQUAL(result, 2);
- UNIT_ASSERT_EQUAL(httpHeader.mime_type, static_cast<ui8>(MIME_JSON));
+ "HTTP/1.1 200 OK\r\n"
+ "Content-Type: application/json; charset=utf-8\r\n\r\n";
+ i32 result = httpHeaderParser->Execute(headers, strlen(headers));
+ UNIT_ASSERT_EQUAL(result, 2);
+ UNIT_ASSERT_EQUAL(httpHeader.mime_type, static_cast<ui8>(MIME_JSON));
UNIT_ASSERT_EQUAL(httpHeader.charset, static_cast<ui8>(CODES_UTF8));
- TestFinish();
-}
-
+ TestFinish();
+}
+
void THttpHeaderParserTestSuite::TestRepeatedContentEncoding() {
TestStart();
THttpHeader httpHeader;