diff options
author | pjenvey <devnull@localhost> | 2006-08-30 06:41:00 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-08-30 06:41:00 +0000 |
commit | 14a7061285f0e5202a74a028c929ab860707b818 (patch) | |
tree | cf4be49978091e638919268db186d10476276941 /paste/wsgiwrappers.py | |
parent | baf6866d3323ec136daee6b7250af1c36ad0013c (diff) | |
download | paste-14a7061285f0e5202a74a028c929ab860707b818.tar.gz |
use headeritems() instead of items() in WSGIResponse.
thanks jaq
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r-- | paste/wsgiwrappers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py index 7eddc68..334e80a 100644 --- a/paste/wsgiwrappers.py +++ b/paste/wsgiwrappers.py @@ -134,7 +134,7 @@ class WSGIResponse(object): def __str__(self): "Full HTTP message, including headers" return '\n'.join(['%s: %s' % (key, value) - for key, value in self.headers.items()]) \ + for key, value in self.headers.headeritems()]) \ + '\n\n' + ''.join(self.content) def has_header(self, header): @@ -172,7 +172,7 @@ class WSGIResponse(object): encoding = settings['charset'] status_text = STATUS_CODE_TEXT[self.status_code] status = '%s %s' % (self.status_code, status_text) - response_headers = self.headers.items() + response_headers = self.headers.headeritems() for c in self.cookies.values(): response_headers.append(('Set-Cookie', c.output(header=''))) output = self.get_content_as_string(encoding) |