Skip to content

Commit

Permalink
fix test with webob 1.7, which doesn't keep the Content-Type on respo…
Browse files Browse the repository at this point in the history
…nses with no body
  • Loading branch information
davisagli committed Feb 11, 2017
1 parent 270d205 commit e28ae64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ New features:

Bug fixes:

- *add item here*
- Fix test with webob 1.7
[davisagli]


1.2.4 (2016-11-17)
Expand Down
3 changes: 1 addition & 2 deletions lib/diazo/tests/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def testfile(filename):
return '/'.join(('file://',) + os.path.split(os.path.abspath(
os.path.dirname(__file__))) + ('test_wsgi_files', filename,))


HTML = b"""\
<html>
<body>
Expand Down Expand Up @@ -221,8 +222,6 @@ def application(environ, start_response):
response = request.get_response(app)

# Response headers for HEAD request must be updated.
self.assertEqual(response.headers['Content-Type'],
'text/html; charset=UTF-8')
self.assertEqual(response.headers.get('Content-Length'), None)
self.assertFalse(response.body)

Expand Down

0 comments on commit e28ae64

Please sign in to comment.