]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the Content-Length in response header is inconsistent with response body... 52341/head
authormengxiangrui <mengxr@chinatelecom.cn>
Sat, 21 Aug 2021 07:20:00 +0000 (15:20 +0800)
committerMark Kogan <mkogan@ibm.com>
Wed, 26 Jul 2023 11:41:09 +0000 (11:41 +0000)
commite0bb8313fdfdc86352e8e2343599c02e574aeae3
treea0a616ac407b8ee02a35144db66cb3ec40d236a0
parent9465f7e9b9aeace1aab4f144bd7e7e3525965e25
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>
src/rgw/rgw_rest.cc