return standard Content-Length header for API responses in addition to nonstandard Api-Content-Length

This commit is contained in:
Andrew Dolgov 2025-05-16 22:02:25 +03:00
parent 191da49ab1
commit 8aac6f2d3d
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -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();