diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-16 22:02:25 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-16 22:02:25 +0300 |
| commit | 8aac6f2d3dc29cb7690feeda5ebfc67d55e34cf8 (patch) | |
| tree | 239625b9610eafc23c78e3312022a2d30f5d5ea6 /api | |
| parent | 191da49ab18c9292e7f00fbd0464551d1c74199b (diff) | |
return standard Content-Length header for API responses in addition to nonstandard Api-Content-Length
Diffstat (limited to 'api')
| -rw-r--r-- | api/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |