packages/libs/clearsilver/patches/102-add_x_requested_http_headers.patch

12 lines
348 B
Diff
Raw Normal View History

--- a/cgi/cgi.c
+++ b/cgi/cgi.c
@@ -201,6 +201,8 @@ struct _http_vars
{"HTTP_IF_MODIFIED_SINCE", "IfModifiedSince"},
{"HTTP_REFERER", "Referer"},
{"HTTP_VIA", "Via"},
+ {"HTTP_X_REQUESTED_WITH", "XRequestedWith"},
+ {"HTTP_X_REQUESTED_HANDLER", "XRequestedHandler"},
/* SOAP */
{"HTTP_SOAPACTION", "Soap.Action"},
{NULL, NULL}