From 0377c8bb20f282e904106bcc1b15f597d1b29d30 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 12 Apr 2016 20:37:48 +0200 Subject: [PATCH] fix reponse for OPTIONS response on Python 3, #242 --- isso/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isso/wsgi.py b/isso/wsgi.py index 8578ac6..1bad0f2 100644 --- a/isso/wsgi.py +++ b/isso/wsgi.py @@ -144,8 +144,8 @@ class CORSMiddleware(object): return start_response(status, headers.to_list(), exc_info) if environ.get("REQUEST_METHOD") == "OPTIONS": - add_cors_headers(b"200 Ok", [("Content-Type", "text/plain")]) - return [b'200 Ok'] + add_cors_headers("200 Ok", [("Content-Type", "text/plain")]) + return [] return self.app(environ, add_cors_headers)