Skip to content

Commit

Permalink
Avoid error when calling setBody with lock on a wsgi response.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Oct 27, 2017
1 parent 1736580 commit dafc3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZPublisher/HTTPResponse.py
Expand Up @@ -1075,7 +1075,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 dafc3ab

Please sign in to comment.