summaryrefslogtreecommitdiff
path: root/flup
diff options
context:
space:
mode:
Diffstat (limited to 'flup')
-rw-r--r--flup/server/ajp_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/flup/server/ajp_base.py b/flup/server/ajp_base.py
index d3145f4..6ffc2e6 100644
--- a/flup/server/ajp_base.py
+++ b/flup/server/ajp_base.py
@@ -466,7 +466,7 @@ class Request(object):
with are: environ, input, startResponse(), and write().
"""
# Do not ever change the following value.
- _maxWrite = 8192 - 4 - 3 # 8k - pkt header - send body header
+ _maxWrite = 8192 - 4 - 3 - 1 # 8k - pkt header - send body header - NUL
def __init__(self, conn):
self._conn = conn
@@ -588,7 +588,7 @@ class Request(object):
pkt = Packet()
pkt.data = PKTTYPE_SEND_BODY + \
struct.pack('>H', toWrite) + \
- data[:toWrite]
+ data[:toWrite] + '\x00' # Undocumented
self._conn.writePacket(pkt)
data = data[toWrite:]