Explorar el Código

Fix CGI unit test for NO_FILES define

bel hace 9 años
padre
commit
262d0f1347
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);