packages/net/hiawatha/patches/100-add_x_requested_http_headers.patch
nico 82104f5bb7 [packages] add hiawatha web server (closes: #4356, thanks to Raphael Huck)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-01 14:50:30 +00:00

12 lines
652 B
Diff

--- a/envir.c
+++ b/envir.c
@@ -189,6 +189,8 @@ void set_environment(t_session *session,
headerfield_to_environment(session, fcgi_buffer, "User-Agent:", "HTTP_USER_AGENT");
headerfield_to_environment(session, fcgi_buffer, "Via:", "HTTP_VIA");
headerfield_to_environment(session, fcgi_buffer, "X-Forwarded-For:", "HTTP_X_FORWARDED_FOR");
+ headerfield_to_environment(session, fcgi_buffer, "X-Requested-With:", "HTTP_X_REQUESTED_WITH");
+ headerfield_to_environment(session, fcgi_buffer, "X-Requested-Handler:", "HTTP_X_REQUESTED_HANDLER");
if (session->path_info != NULL) {
add_to_environment(fcgi_buffer, "PATH_INFO", session->path_info);