Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fastcgi, Content-Length
On Fri, Apr 01, 2011 at 05:19:56AM +0000, Прокофьев Павел Владимирович wrote:
> В ответе 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>?
Создавать его в PHP.
--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|