From 8aac6f2d3dc29cb7690feeda5ebfc67d55e34cf8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 16 May 2025 22:02:25 +0300 Subject: return standard Content-Length header for API responses in addition to nonstandard Api-Content-Length --- api/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/index.php b/api/index.php index 732b7bd9a..6110beb2b 100644 --- a/api/index.php +++ b/api/index.php @@ -59,7 +59,10 @@ // $handler->after(); } - header("Api-Content-Length: " . ob_get_length()); + $content_length = ob_get_length(); + + header("Api-Content-Length: $content_length"); + header("Content-Length: $content_length"); ob_end_flush(); -- cgit v1.2.3-54-g00ecf