I have nginx server installed on Linux. When I send a request with curl, the Content-Length
header is missing from the response.
The 1.php file is:
<?php
echo "hello";
?>
The example request is:
curl api.mysite.com/taxi/1.php -i
HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Wed, 17 Sep 2014 06:16:00 GMT
Content-Type: text/html; charset=utf8
Vary: Accept-Encoding
X-Powered-By: PHP/5.4.4-14+deb7u14
Age: 0
X-Cache: MISS from cache.turonnet.uz
Transfer-Encoding: chunked
Connection: keep-alive
How can I fix that?