Skip to content

Commit

Permalink
Remove the whitespace between the content-type and charset of the def…
Browse files Browse the repository at this point in the history
…ault error views.
  • Loading branch information
janwijbrand committed Jan 15, 2018
1 parent da35ecb commit 9781c47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
1.2 (unreleased)
================

- Nothing changed yet.

- Remove the whitespace between the content-type and charset of the default
error views. This is because in certain cases zope.publisher.http will parse
the content type parameters and combine them back again without the
whitespace. This fix makes things more predictable esp. in tests.

1.1 (2018-01-10)
================
Expand Down
2 changes: 1 addition & 1 deletion src/zope/errorview/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, context, request):
def update(self):
self.request.response.setStatus(500)
self.request.response.setHeader(
'Content-Type', 'text/plain; charset=utf-8')
'Content-Type', 'text/plain;charset=utf-8')

def render(self):
return ''
Expand Down

0 comments on commit 9781c47

Please sign in to comment.