aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/response_ut.cpp
diff options
context:
space:
mode:
authorIgor Makunin <igor.makunin@gmail.com>2022-02-10 16:49:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:35 +0300
commitc617191a3b33c0f5e1be6390361dbe540775d158 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/server/response_ut.cpp
parentf7a438035f19b364b5479caf536990e82b174f38 (diff)
downloadydb-c617191a3b33c0f5e1be6390361dbe540775d158.tar.gz
Restoring authorship annotation for Igor Makunin <igor.makunin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/response_ut.cpp')
-rw-r--r--library/cpp/http/server/response_ut.cpp26
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 8569839db9..73e2112ad3 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);
+ }
}