fastcgi, Content-Length

Прокофьев Павел Владимирович p.prokofyev на westcall.spb.ru
Пт Апр 1 09:19:56 MSD 2011


В ответе nginx не возвращается header Content-Length в связке nginx/0.8.53 + spawn-fcgi.

        location /spbpost/ {
               fastcgi_pass    unix:/var/run/spawn-fcgi/spawn-fcgi.www-1;
               fastcgi_index   test.php;
               root /var/www/test/;
               fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                include         fastcgi_params;
                chunked_transfer_encoding off;
                  }

curl -v http://192.168.127.7:8080/test/?operation=test
> GET /test/?operation=test HTTP/1.1
> User-Agent: curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 OpenSSL/1.0.0c zlib/1.2.3
> Host: 192.168.127.7:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/0.8.53
< Date: Fri, 01 Apr 2011 05:07:27 GMT
< Content-Type: text/html
< Connection: close
< X-Powered-By: PHP/5.2.13-pl0-gentoo
<
* Closing connection #0
test


Как сделать чтобы в ответе присутствовал <Content-Length>?

----------- следущая часть -----------
Вложение в формате HTML было извлечено&hellip;
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20110401/842bba80/attachment.html>


Подробная информация о списке рассылки nginx-ru