Merge pull request #428 from pagespeed/jefftk-head-get

request: allow alternate request methods when rewriting html
This commit is contained in:
Jeff Kaufman
2013-07-09 07:01:46 -07:00
+3 -1
View File
@@ -1505,7 +1505,9 @@ CreateRequestContext::Response ps_create_request_context(
return CreateRequestContext::kBeacon;
}
if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) {
if (is_resource_fetch &&
r->method != NGX_HTTP_GET &&
r->method != NGX_HTTP_HEAD) {
return CreateRequestContext::kNotHeadOrGet;
}