Small improvement over previous patch
Sergey A. Osokin provided this small improvement for the his previous patch regarding the "zero_in_uri" being absent in newer development versions of Nginx. Signed-off-by: Adrian Perez <aperez@igalia.com>pull/4/head
parent
d54092b842
commit
f465a2bcd6
|
@ -591,6 +591,11 @@ ngx_http_fancyindex_handler(ngx_http_request_t *r)
|
|||
}
|
||||
|
||||
/* TODO: Win32 */
|
||||
#if defined(nginx_version) && nginx_version < 8038
|
||||
if (r->zero_in_uri) {
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
|
||||
return NGX_DECLINED;
|
||||
|
|
Loading…
Reference in New Issue