From fa78fd915b8c6df9916fc677d4aa85baa71fc686 Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 12 Nov 2013 05:59:10 +0100 Subject: [PATCH] force https to on when --https-socket is in place --- proto/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/http.c b/proto/http.c index 5f3b82de..cb27ed1a 100644 --- a/proto/http.c +++ b/proto/http.c @@ -521,6 +521,8 @@ parse: if (wsgi_req->proto_parser_remains > 0) { wsgi_req->proto_parser_remains_buf = (wsgi_req->proto_parser_buf + wsgi_req->proto_parser_pos) - wsgi_req->proto_parser_remains; } + wsgi_req->https = "on"; + wsgi_req->https_len = 2; if (http_parse(wsgi_req, ptr)) return -1; wsgi_req->uh->modifier1 = uwsgi.https_modifier1; wsgi_req->uh->modifier2 = uwsgi.https_modifier2;