Commit d10401d8 authored by Julien Muchembled's avatar Julien Muchembled

ERP5SyncML: remove misuse of Transfer-Encoding: chunked

We do not chunk at this level.

Neither our code nor requests encodes the body this way
and waitress (WSGI) considers the request is corrupted.

It worked so far because Medusa ignores this header field.
parent d25ac9ca
......@@ -55,9 +55,7 @@ class HTTPTransport:
# XXX- Syncml content-type is not supported by Zope server
# for now disable it until ZServer get patched
# 'Content-Type' : content_type,
# 'Content-Length' : str(len(xml)), XXX-Bad way to compute length
'Cache-control' : 'no-store',
'Transfer-encoding' : 'chunked',
'Accept' : 'application/vnd.syncml+xml',
'Accept-Charset' : 'UTF-8',
'User-Agent' : 'ERP5SyncML Tool',
......
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