Commit 349511f5 authored by Aurel's avatar Aurel

apply setBody patch only in zope2

parent c0d75589
...@@ -100,7 +100,8 @@ if 1: # upstream moved WSGIResponse to HTTPResponse.py ...@@ -100,7 +100,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
# According to PEP 333, WSGI applications and middleware are forbidden from # According to PEP 333, WSGI applications and middleware are forbidden from
# using HTTP/1.1 "hop-by-hop" features or headers. This patch prevents Zope # using HTTP/1.1 "hop-by-hop" features or headers. This patch prevents Zope
......
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