Skip to content

Commit

Permalink
Merge pull request #215 from zopefoundation/fix_invalidparameter
Browse files Browse the repository at this point in the history
Avoid error when calling setBody with lock on a wsgi response.
  • Loading branch information
pbauer committed Oct 28, 2017
2 parents fcf0ce9 + dafc3ab commit 50c9653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZPublisher/HTTPResponse.py
Expand Up @@ -1080,7 +1080,7 @@ def write(self, data):

self.stdout.write(data)

def setBody(self, body, title='', is_error=False):
def setBody(self, body, title='', is_error=False, lock=None):
if isinstance(body, IOBase):
body.seek(0, 2)
length = body.tell()
Expand Down

0 comments on commit 50c9653

Please sign in to comment.