瀏覽代碼

Fix problem caused by #1931.

yhirose 1 年之前
父節點
當前提交
509f583dca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/test.cc

+ 1 - 1
test/test.cc

@@ -2920,7 +2920,7 @@ TEST_F(ServerTest, GetEmptyFile) {
   auto res = cli_.Get("/empty_file");
   ASSERT_TRUE(res);
   EXPECT_EQ(StatusCode::OK_200, res->status);
-  EXPECT_EQ("text/plain", res->get_header_value("Content-Type"));
+  EXPECT_EQ("application/octet-stream", res->get_header_value("Content-Type"));
   EXPECT_EQ(0, std::stoi(res->get_header_value("Content-Length")));
   EXPECT_EQ("", res->body);
 }