summaryrefslogtreecommitdiff
path: root/cherrypy/_cpwsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/_cpwsgi.py')
-rw-r--r--cherrypy/_cpwsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/_cpwsgi.py b/cherrypy/_cpwsgi.py
index faf7d370..29543d92 100644
--- a/cherrypy/_cpwsgi.py
+++ b/cherrypy/_cpwsgi.py
@@ -254,7 +254,7 @@ class AppResponse(object):
for k, v in r.header_list:
if not isinstance(k, bytes):
tmpl = "response.header_list key %r is not a byte string."
- raise TypeError(tmpl % v)
+ raise TypeError(tmpl % k)
if not isinstance(v, bytes):
tmpl = (
"response.header_list value %r is not a byte string."