fix wrong status code type
This commit is contained in:
parent
b59f650c99
commit
978d22e77e
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user