summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-16 22:02:25 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-16 22:02:25 +0300
commit8aac6f2d3dc29cb7690feeda5ebfc67d55e34cf8 (patch)
tree239625b9610eafc23c78e3312022a2d30f5d5ea6 /api
parent191da49ab18c9292e7f00fbd0464551d1c74199b (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.php5
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();