set http status on head static request

This commit is contained in:
Łukasz Mierzwa
2012-11-02 11:21:52 +01:00
parent 0605148e21
commit 46a33b268a
+1
View File
@@ -1919,6 +1919,7 @@ int uwsgi_real_file_serve(struct wsgi_request *wsgi_req, char *real_filename, si
// if it is a HEAD request just skip transfer
if (!uwsgi_strncmp(wsgi_req->method, wsgi_req->method_len, "HEAD", 4)) {
wsgi_req->status = 200;
return 0;
}