@@ -3232,6 +3232,13 @@ class ServerTest : public ::testing::Test {
3232
3232
EXPECT_EQ (" h\n e\n\n l\n l\n o\n " , file.content );
3233
3233
}
3234
3234
3235
+ {
3236
+ const auto &file = get_file_value (files, " file2" );
3237
+ EXPECT_EQ (" world.json" , file.filename );
3238
+ EXPECT_EQ (" application/json" , file.content_type );
3239
+ EXPECT_EQ (R"( {\n "world": true\n}\n)" , file.content );
3240
+ }
3241
+
3235
3242
{
3236
3243
const auto &file = get_file_value (files, " file3" );
3237
3244
EXPECT_TRUE (file.filename .empty ());
@@ -5239,7 +5246,7 @@ TEST_F(ServerTest, PostMultipartFileContentReceiver) {
5239
5246
{" text1" , " text default" , " " , " " },
5240
5247
{" text2" , " aωb" , " " , " " },
5241
5248
{" file1" , " h\n e\n\n l\n l\n o\n " , " hello.txt" , " text/plain" },
5242
- {" file2" , " {\n \ " world\" , true\n }\n " , " world.json" , " application/json" },
5249
+ {" file2" , R"( {\n "world": true\n}\n) " , " world.json" , " application/json" },
5243
5250
{" file3" , " " , " " , " application/octet-stream" },
5244
5251
};
5245
5252
@@ -5254,7 +5261,7 @@ TEST_F(ServerTest, PostMultipartPlusBoundary) {
5254
5261
{" text1" , " text default" , " " , " " },
5255
5262
{" text2" , " aωb" , " " , " " },
5256
5263
{" file1" , " h\n e\n\n l\n l\n o\n " , " hello.txt" , " text/plain" },
5257
- {" file2" , " {\n \ " world\" , true\n }\n " , " world.json" , " application/json" },
5264
+ {" file2" , R"( {\n "world": true\n}\n) " , " world.json" , " application/json" },
5258
5265
{" file3" , " " , " " , " application/octet-stream" },
5259
5266
};
5260
5267
0 commit comments