Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Сжимать gzip контент отда нный модулем
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Сжимать gzip контент отда нный модулем
- From: "Fly3110" <nginx-forum@xxxxxxxx>
- Date: Wed, 16 Mar 2011 18:07:50 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=4DFCDwK1tg+FR54olwd4Px350i2a6IFK++25Q8aOyMo=; b=j1COffm6yj9o+LKcJH/1W0RsUt9KtiN22Dx5sMFdn4v9YrMF5Jxu7IfAy8wamLo7eMkfIULYELZ0ijbTsM/cF7b2GZmxqyxV5S1fucNja/oao9+SvzLgKqsYxCM/uM/l;
- In-reply-to: <20110316215726.GU99496@xxxxxxxxxx>
- References: <20110316215726.GU99496@xxxxxxxxxx>
> [...]
>
> > Кусок модуля:
> > 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;
просто сейчас уже проверить не могу
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,183152,183359#msg-183359
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|