Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 1a25e95

Browse files
authored
Merge pull request #4 from tdammers/master
Fix for Python 3.4: Header() takes a required positional argument.
2 parents cd1b612 + 0603049 commit 1a25e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsgi_static_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _get_body(filename, method, block_size, charset):
6363

6464
# View functions
6565
def static_file_view(env, start_response, filename, block_size, charset):
66-
headers = Headers()
66+
headers = Headers([])
6767

6868
mimetype, encoding = mimetypes.guess_type(filename)
6969
headers.add_header('Content-Encodings', encoding)

0 commit comments

Comments
 (0)