return standard Content-Length header for API responses in addition to nonstandard Api-Content-Length
This commit is contained in:
@@ -59,7 +59,10 @@
|
|||||||
// $handler->after();
|
// $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();
|
ob_end_flush();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user