]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the Content-Length in response header is inconsistent with response body... 60741/head
authormengxiangrui <mengxr@chinatelecom.cn>
Sat, 21 Aug 2021 07:20:00 +0000 (15:20 +0800)
committerMark Kogan <mkogan@ibm.com>
Thu, 14 Nov 2024 16:27:02 +0000 (16:27 +0000)
commit80fafc50f2145419c721649207b2581244c7b396
tree63dfd3c2f18101f156bc191c81c2748db262cf17
parent33074c09afca08577e35dc70666c88e608020723
rgw: fix the Content-Length in response header is inconsistent with response body size when rgw returns default html error page in static website

The default html error page as response body should be built completely include three ending html symbols(/ul, /body and /html) before rgw computes Content-Length in response header. The Content-Length in response header will be consistent with response body size. Client can get complete page.

Fixes: https://tracker.ceph.com/issues/52363
(cherry picked from commit cbeaef9fbe96c930fc10b793773e7ecd137fde81)

Co-authored-by: aicun hu <huaicun@chinatelecom.cn>
Co-authored-by: yupeng chen <chenyupeng@chinatelecom.cn>
Signed-off-by: xiangrui meng <mengxr@chinatelecom.cn>
(cherry picked from commit e0bb8313fdfdc86352e8e2343599c02e574aeae3)
src/rgw/rgw_rest.cc