Commit 9e513778 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

apply setBody patch only in zope2

parent 358e8f60
...@@ -101,7 +101,8 @@ if 1: # upstream moved WSGIResponse to HTTPResponse.py ...@@ -101,7 +101,8 @@ if 1: # upstream moved WSGIResponse to HTTPResponse.py
if lock: if lock:
self._locked_body = 1 self._locked_body = 1
WSGIResponse.setBody = setBody if not isZope4:
WSGIResponse.setBody = setBody
def write(self, data): def write(self, data):
if not self._streaming: if not self._streaming:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment