Merge pull request #428 from pagespeed/jefftk-head-get
request: allow alternate request methods when rewriting html
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user