You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This wasn't a problem in Python 2 where xmlrpclib used connection.putheader("Content-Type", "text/xml"). But in Python 3, where xmlrpc.client uses headers.append(("Content-Type", "text/xml")), this https://github.com/joshmarshall/jsonrpclib/blob/master/jsonrpclib/jsonrpc.py#L107connection.putheader("Content-Type", "application/json-rpc") actually creates a secondContent-Type header instead of replacing the text/xml one.
This duplicate Content-Type headers generates 400s on lighttpd.
The text was updated successfully, but these errors were encountered:
This wasn't a problem in Python 2 where xmlrpclib used
connection.putheader("Content-Type", "text/xml")
. But in Python 3, where xmlrpc.client usesheaders.append(("Content-Type", "text/xml"))
, this https://github.com/joshmarshall/jsonrpclib/blob/master/jsonrpclib/jsonrpc.py#L107connection.putheader("Content-Type", "application/json-rpc")
actually creates a secondContent-Type
header instead of replacing the text/xml one.This duplicate
Content-Type
headers generates 400s on lighttpd.The text was updated successfully, but these errors were encountered: