Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Сжимать gzip контент отда нный модулем
Hello!
On Wed, Mar 16, 2011 at 06:07:50PM -0400, Fly3110 wrote:
> > [...]
> >
> > > Кусок модуля:
> > > r->headers_out.status = NGX_HTTP_OK;
> > > r->headers_out.content_length_n = size;
> > > r->headers_out.last_modified_time =
> > of.mtime;
> > > r->headers_out.content_type.data =
> > "application/x-msdownload";
> > > r->headers_out.content_type.len = 24;
> >
> > Ставить r->headers_out.content_type_len
> > не забываем.
> >
> > [...]
> >
> так?
> r->headers_out.content_type_len = 24;
Да.
Maxim Dounin
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|