benluteijn / cherokee

Automatically exported from code.google.com/p/cherokee
0 stars 1 forks source link

"404 Not Found" should always report the requested (original) URL #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If, for example, I use an internal redirection in some page, and that
redirection leads to a 404 error, the default error page in cherokee shows
the final page (after redirection), instead of the typed URL.

As I see it, in cherokee/handler_error.c, around line 114, you should use
&conn->request_original if available, instead of showing always
&conn->request (just as you do in logger_ncsa.c:421)

Thanks,

-- 
Juan Cespedes
http://www.cespedes.org/

Original issue reported on code.google.com by cespe...@gmail.com on 3 Dec 2008 at 11:23

GoogleCodeExporter commented 9 years ago
Makes pretty good sense to me..

Original comment by alobbs on 3 Dec 2008 at 11:27

GoogleCodeExporter commented 9 years ago
This issue is already fixed in trunk (upcoming Cherokee 0.98).

Juan, thanks for reporting! :-)

Original comment by alobbs on 14 Jan 2009 at 3:47