diff options
author | Igor Makunin <igor.makunin@gmail.com> | 2022-02-10 16:49:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:35 +0300 |
commit | f7a438035f19b364b5479caf536990e82b174f38 (patch) | |
tree | 5f15d64d88d75f4cd73740339f36970716572e95 /library/cpp/http/server/response_ut.cpp | |
parent | 492d4842b42175970fd597869540936bf152ffb1 (diff) | |
download | ydb-f7a438035f19b364b5479caf536990e82b174f38.tar.gz |
Restoring authorship annotation for Igor Makunin <igor.makunin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server/response_ut.cpp')
-rw-r--r-- | library/cpp/http/server/response_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/http/server/response_ut.cpp b/library/cpp/http/server/response_ut.cpp index 73e2112ad3..8569839db9 100644 --- a/library/cpp/http/server/response_ut.cpp +++ b/library/cpp/http/server/response_ut.cpp @@ -126,17 +126,17 @@ Y_UNIT_TEST_SUITE(TestHttpResponse) { UNIT_ASSERT_EQUAL(&resp, &resp.SetContent("some stuff")); UNIT_ASSERT_EQUAL(&resp, &resp.SetContent("some other stuff").SetContentType("text/plain")); } - - Y_UNIT_TEST(TestSetContentType) { - const char* EXPECTED = "HTTP/1.1 200 Ok\r\n" - "Content-Type: text/xml\r\n" - "Content-Length: 28\r\n" - "\r\n" - "<xml><tag value=\"1\" /></xml>"; - THttpResponse resp; - resp.SetContent("<xml><tag value=\"1\" /></xml>") - .SetContentType("application/json") - .SetContentType("text/xml"); - UNIT_ASSERT_STRINGS_EQUAL(ToString(resp), EXPECTED); - } + + Y_UNIT_TEST(TestSetContentType) { + const char* EXPECTED = "HTTP/1.1 200 Ok\r\n" + "Content-Type: text/xml\r\n" + "Content-Length: 28\r\n" + "\r\n" + "<xml><tag value=\"1\" /></xml>"; + THttpResponse resp; + resp.SetContent("<xml><tag value=\"1\" /></xml>") + .SetContentType("application/json") + .SetContentType("text/xml"); + UNIT_ASSERT_STRINGS_EQUAL(ToString(resp), EXPECTED); + } } |