diff --git a/examples/ph7_cgi.c b/examples/ph7_cgi.c index f05a887..0eb1489 100644 --- a/examples/ph7_cgi.c +++ b/examples/ph7_cgi.c @@ -5,7 +5,7 @@ * * The PH7 CGI interpreter (ph7_cgi.c) is based on PH7 interpreter (ph7_interp.c). * - * Copyright (C) 2015, 谢致邦 (XIE Zhibang) + * Copyright (C) 2015-2016, 谢致邦 (XIE Zhibang) */ #include @@ -15,8 +15,8 @@ static void CgiHeader() { - puts("X-Powered-By: " PH7_SIG); - puts("Content-type: text/html; charset=UTF-8\n"); + puts("X-Powered-By: " PH7_SIG "\r"); + puts("Content-type: text/html; charset=UTF-8\r\n\r"); } /* * Display an error message and exit.