Merge pull request #45 from prymitive/static_methods

disable static files offloading for methods other than GET and HEAD
This commit is contained in:
unbit
2012-11-06 11:23:01 -08:00
+6
View File
@@ -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) {