Comment 15 for bug 981332

Revision history for this message
Mike Lundy (novas0x2a) wrote :

Jay, unless there's something I'm missing, swift does not set chunked when there is a content-length.
https://github.com/openstack/swift/blob/master/swift/common/client.py#L690

if hasattr(contents, 'read'):
    if content_length is None:
        conn.putheader('Transfer-Encoding', 'chunked')
        conn.endheaders()
    else:
        conn.endheaders()