Merge pull request #13 from Red54/patch-1

Update ph7_cgi.c
This commit is contained in:
Mrad Chems Eddine 2016-04-18 02:54:37 +01:00
commit ebf214db48

View File

@ -5,7 +5,7 @@
* *
* The PH7 CGI interpreter (ph7_cgi.c) is based on PH7 interpreter (ph7_interp.c). * The PH7 CGI interpreter (ph7_cgi.c) is based on PH7 interpreter (ph7_interp.c).
* *
* Copyright (C) 2015, (XIE Zhibang) <Yeking@Red54.com> * Copyright (C) 2015-2016, (XIE Zhibang) <Yeking@Red54.com>
*/ */
#include <stdio.h> #include <stdio.h>
@ -15,8 +15,8 @@
static void CgiHeader() static void CgiHeader()
{ {
puts("X-Powered-By: " PH7_SIG); puts("X-Powered-By: " PH7_SIG "\r");
puts("Content-type: text/html; charset=UTF-8\n"); puts("Content-type: text/html; charset=UTF-8\r\n\r");
} }
/* /*
* Display an error message and exit. * Display an error message and exit.