Skip to content

Commit

Permalink
some errors spotted by pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Jun 16, 2010
1 parent da91ec5 commit e164783
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion gunicorn/app/wsgiapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import os
import sys
import traceback

from gunicorn import util
from gunicorn.app.base import Application
Expand Down
2 changes: 2 additions & 0 deletions gunicorn/http/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

from gunicorn.http.message import Message, Request
from gunicorn.http.parser import RequestParser

__all__ = [Message, Request, RequestParser]
2 changes: 0 additions & 2 deletions gunicorn/http/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.

import socket

from gunicorn.http.message import Request
from gunicorn.http.unreader import SocketUnreader, IterUnreader

Expand Down
4 changes: 2 additions & 2 deletions gunicorn/http/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def create(req, sock, client, server, debug=False):
sock.send("HTTP/1.1 100 Continue\r\n\r\n")
elif name == "x-forwarded-for":
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"
elif name == "x-forwarded-ssl" and value.lower() == "on":
elif name == "x-forwarded-ssl" and hdr_value.lower() == "on":
url_scheme = "https"
elif name == "host":
server = hdr_value
Expand Down

0 comments on commit e164783

Please sign in to comment.