mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
some errors spotted by pyflakes
This commit is contained in:
parent
da91ec5e93
commit
e1647837d4
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
|
||||||
|
|
||||||
from gunicorn import util
|
from gunicorn import util
|
||||||
from gunicorn.app.base import Application
|
from gunicorn.app.base import Application
|
||||||
|
|||||||
@ -5,3 +5,5 @@
|
|||||||
|
|
||||||
from gunicorn.http.message import Message, Request
|
from gunicorn.http.message import Message, Request
|
||||||
from gunicorn.http.parser import RequestParser
|
from gunicorn.http.parser import RequestParser
|
||||||
|
|
||||||
|
__all__ = [Message, Request, RequestParser]
|
||||||
@ -3,8 +3,6 @@
|
|||||||
# This file is part of gunicorn released under the MIT license.
|
# This file is part of gunicorn released under the MIT license.
|
||||||
# See the NOTICE for more information.
|
# See the NOTICE for more information.
|
||||||
|
|
||||||
import socket
|
|
||||||
|
|
||||||
from gunicorn.http.message import Request
|
from gunicorn.http.message import Request
|
||||||
from gunicorn.http.unreader import SocketUnreader, IterUnreader
|
from gunicorn.http.unreader import SocketUnreader, IterUnreader
|
||||||
|
|
||||||
|
|||||||
@ -39,9 +39,9 @@ def create(req, sock, client, server, debug=False):
|
|||||||
sock.send("HTTP/1.1 100 Continue\r\n\r\n")
|
sock.send("HTTP/1.1 100 Continue\r\n\r\n")
|
||||||
elif name == "x-forwarded-for":
|
elif name == "x-forwarded-for":
|
||||||
forward = hdr_value
|
forward = hdr_value
|
||||||
elif name == "x-forwarded-protocol" and value.lower() == "ssl":
|
elif name == "x-forwarded-protocol" and hdr_value.lower() == "ssl":
|
||||||
url_scheme = "https"
|
url_scheme = "https"
|
||||||
elif name == "x-forwarded-ssl" and value.lower() == "on":
|
elif name == "x-forwarded-ssl" and hdr_value.lower() == "on":
|
||||||
url_scheme = "https"
|
url_scheme = "https"
|
||||||
elif name == "host":
|
elif name == "host":
|
||||||
server = hdr_value
|
server = hdr_value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user