mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 21:51:30 +00:00
Merge pull request #45 from prymitive/static_methods
disable static files offloading for methods other than GET and HEAD
This commit is contained in:
@@ -1030,6 +1030,12 @@ next:
|
||||
|
||||
// check for static files
|
||||
|
||||
// skip methods other than GET and HEAD
|
||||
if (uwsgi_strncmp(wsgi_req->method, wsgi_req->method_len, "GET", 3) &&
|
||||
uwsgi_strncmp(wsgi_req->method, wsgi_req->method_len, "HEAD", 4)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// skip extensions
|
||||
struct uwsgi_string_list *sse = uwsgi.static_skip_ext;
|
||||
while(sse) {
|
||||
|
||||
Reference in New Issue
Block a user