diff options
| author | vlid <[email protected]> | 2022-02-10 16:49:50 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:50 +0300 | 
| commit | d94c2eed82b3c1259ac7320eb28e9731cd990c22 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch/httpfsm_ut.cpp | |
| parent | d331afa299a67de4e1afaf388f4edd5584a3c92f (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm_ut.cpp')
| -rw-r--r-- | library/cpp/http/fetch/httpfsm_ut.cpp | 26 | 
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 ba5a011e0bd..b018e80101b 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;  | 
