From 71b441358f14239cff59cd9a2ebbe572ce7aa9f0 Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 13 Nov 2014 11:56:44 +0100 Subject: [PATCH] less strict http generator --- proto/http.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/proto/http.c b/proto/http.c index 9097e962..92d389e8 100644 --- a/proto/http.c +++ b/proto/http.c @@ -522,14 +522,8 @@ struct uwsgi_buffer *uwsgi_to_http(struct wsgi_request *wsgi_req, char *host, ui // remove dangerous headers if (!uwsgi_strncmp(header, header_len, "CONNECTION", 10)) goto next; if (!uwsgi_strncmp(header, header_len, "KEEP_ALIVE", 10)) goto next; - if (!uwsgi_strncmp(header, header_len, "ACCEPT_ENCODING", 15)) goto next; if (!uwsgi_strncmp(header, header_len, "TE", 2)) goto next; if (!uwsgi_strncmp(header, header_len, "TRAILER", 7)) goto next; - if (!uwsgi_strncmp(header, header_len, "IF_MATCH", 8)) goto next; - if (!uwsgi_strncmp(header, header_len, "IF_MODIFIED_SINCE", 17)) goto next; - if (!uwsgi_strncmp(header, header_len, "IF_RANGE", 8)) goto next; - if (!uwsgi_strncmp(header, header_len, "IF_UNMODIFIED_SINCE", 19)) goto next; - if (!uwsgi_strncmp(header, header_len, "IF_NONE_MATCH", 13)) goto next; if (!uwsgi_strncmp(header, header_len, "X_FORWARDED_FOR", 15)) { x_forwarded_for = wsgi_req->hvec[i+1].iov_base; x_forwarded_for_len = wsgi_req->hvec[i+1].iov_len;