Skip to content

duplicating Content-Type header #66

Open
@dotysan

Description

@dotysan

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#L107 connection.putheader("Content-Type", "application/json-rpc") actually creates a second Content-Type header instead of replacing the text/xml one.

This duplicate Content-Type headers generates 400s on lighttpd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions