]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/civetweb: handle old clients with transfer-encoding: chunked. 51018/head
authorMarcus Watts <mwatts@redhat.com>
Fri, 8 May 2020 05:41:35 +0000 (01:41 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 11 Apr 2023 13:30:22 +0000 (09:30 -0400)
commita40dc01397ffd76a0c5ad03259047f859e197a53
tree89f631e354d51b6687808077899810d57ee7b4ec
parent66f2427e85b86dcf72b8c311def3b942dddbecc6
rgw/civetweb: handle old clients with transfer-encoding: chunked.

s3 clients *should* provide an x-amz-decoded-content-length field
when they use transport-encoding: chunked.  Some clients do not.
With swift we already allow chunked uploads that do not specify the
content length in advance.   This commit adds similar support
for s3.  Known client affected by this: boto2.

Fixes: https://tracker.ceph.com/issues/45789
Resolves: rhbz#2152801

Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 22e9509655ca1d799df2eec535390d20f2f60256)
src/rgw/rgw_rest_s3.cc