[packages] add hiawatha web server (closes: #4356, thanks to Raphael Huck)
[openwrt/svn-archive/archive.git] / net / hiawatha / patches / 100-add_x_requested_http_headers.patch
1 --- a/envir.c
2 +++ b/envir.c
3 @@ -189,6 +189,8 @@ void set_environment(t_session *session,
4 headerfield_to_environment(session, fcgi_buffer, "User-Agent:", "HTTP_USER_AGENT");
5 headerfield_to_environment(session, fcgi_buffer, "Via:", "HTTP_VIA");
6 headerfield_to_environment(session, fcgi_buffer, "X-Forwarded-For:", "HTTP_X_FORWARDED_FOR");
7 + headerfield_to_environment(session, fcgi_buffer, "X-Requested-With:", "HTTP_X_REQUESTED_WITH");
8 + headerfield_to_environment(session, fcgi_buffer, "X-Requested-Handler:", "HTTP_X_REQUESTED_HANDLER");
9
10 if (session->path_info != NULL) {
11 add_to_environment(fcgi_buffer, "PATH_INFO", session->path_info);