fix wrong status code type

This commit is contained in:
Martin Zimmermann 2014-07-09 23:18:46 +02:00
parent b59f650c99
commit 978d22e77e
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Changelog for Isso
0.9.4 (unreleased)
------------------
- Nothing changed yet.
- fixed a regression when using Isso and Gevent
0.9.3 (2014-07-09)

View File

@ -142,7 +142,7 @@ class CORSMiddleware(object):
return start_response(status, headers.to_list(), exc_info)
if environ.get("REQUEST_METHOD") == "OPTIONS":
add_cors_headers("200 Ok", [("Content-Type", "text/plain")])
add_cors_headers(b"200 Ok", [("Content-Type", "text/plain")])
return [b'200 Ok']
return self.app(environ, add_cors_headers)