浏览代码

Fix CGI unit test for NO_FILES define

bel 9 年之前
父节点
当前提交
262d0f1347
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/public_server.c

+ 2 - 2
test/public_server.c

@@ -982,10 +982,10 @@ START_TEST(test_request_handlers)
 	fclose(f);
 #else
 	f = fopen("test.cgi", "w");
-	cgi_script_content = "#!/bin/sh\n"
+	cgi_script_content = "#!/bin/sh\n\n"
 	                     "echo \"Connection: close\"\n"
 	                     "echo \"Content-Type: text/plain\"\n"
-	                     "echo \n"
+	                     "echo\n"
 	                     "echo \"CGI test\"\n"
 	                     "\n";
 	fwrite(cgi_script_content, strlen(cgi_script_content), 1, f);