automatically manage HTTP_X_FORWARDED_PROTO

This commit is contained in:
Unbit
2014-09-05 17:36:49 +02:00
parent a70c35e4b6
commit 03467ece6c
+5
View File
@@ -527,6 +527,11 @@ static int uwsgi_proto_check_22(struct wsgi_request *wsgi_req, char *key, char *
return 0;
}
if (!uwsgi_proto_key("HTTP_X_FORWARDED_PROTO", 22)) {
wsgi_req->scheme = buf;
wsgi_req->scheme_len = len;
}
return 0;
}