[Klone-users] Error 404 redefined
Mickael Auger
mickael.auger at gmail.com
Thu Apr 10 09:36:25 EDT 2008
Hi Thomas,
I replace the .klone extension by .html.
I enter :
make clean && make.
But Firefox displays a white page and IE6 my error page.
Using 'curl' program I have not problem because it keeps the first header
with the first page. And my custom error page is the first.
However using 'telnet' program with GET method :
telnet 127.0.0.1 8080
GET /xxx HTTP/1.0[CRLF]
[CRLF]
where [CRLF] is enter key
I have two headers and a contenation with my HTML page and the default error
page :
HTTP/1.0 404 Not Found
Server: klone/2.0.2
Date: Thu, 10 Apr 2008 13:13:56 GMT
Cache-Control: no-cache, must-revalidate
Expires: Mon, 1 Jan 1990 05:00:00 GMT
Pragma: no-cache
Content-Type: text/html
Last-Modified: Thu, 10 Apr 2008 13:06:35 GMT
Content-Length: 53
<html>
<body>
<p>My 404 error</p>
</body>
</html>
HTTP/1.0 404 Not Found
Server: klone/2.0.2
Date: Thu, 10 Apr 2008 13:13:56 GMT
Cache-Control: no-cache, must-revalidate
Expires: Mon, 1 Jan 1990 05:00:00 GMT
Pragma: no-cache
Content-Type: text/html
Last-Modified: Thu, 10 Apr 2008 13:06:35 GMT
Content-Length: 53
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404
Not Fou
nd</title></head>
<body><h1>Not Found</h1><p>URL:
/error404.html</p><hr><address>
KLone/2.0.2 web server - www.koanlogic.com</address></body></html>
I resolve this problem adding the next line in header of '
http_print_error_page' function (line 377 src/libhttp/http.c)
====================================
response_set_status(rs, HTTP_STATUS_OK); //line 390
====================================
But I don't known if it's the good patch.
Thanks.
--
Mickaël AUGER
mickael.auger at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080410/3cfda795/attachment.htm
More information about the klone-users
mailing list