Skip to content

Commit

Permalink
Fix tests to assume body is bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalresistor committed Apr 21, 2022
1 parent bab7a7a commit 3907997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_proxy_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def start_response(status, response_headers):
response.headers = response_headers

response.steps = list(app(environ, start_response))
response.body = b"".join(s.encode("latin-1") for s in response.steps)
response.body = b"".join(s for s in response.steps)
return response

def test_get_environment_values_w_scheme_override_untrusted(self):
Expand Down Expand Up @@ -727,7 +727,7 @@ class DummyApp:
def __call__(self, environ, start_response):
self.environ = environ
start_response("200 OK", [("Content-Type", "text/plain")])
yield "hello"
yield b"hello"


class DummyResponse:
Expand Down

0 comments on commit 3907997

Please sign in to comment.