Ive seen other applications drop the quotes too maybe nginx should be less strict?<br><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 7:01 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello!<br>
<div class="im"><br>
On Mon, Oct 25, 2010 at 05:31:35PM -0700, Matthieu Tourne wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have a case where the origin server behind nginx returns this header:<br>
&gt; Content-Type: application/javascript; charset: UTF-8<br>
&gt;<br>
&gt; Which seems to be valid according for HTTP/1.0 [1] and HTTP/1.1 [2] rfcs.<br>
<br>
</div>This doesn&#39;t looks valid.  Valid one will look like<br>
<div class="im"><br>
Content-Type: application/javascript; charset=UTF-8<br>
<br>
</div>Parameters should be in form &#39;attribute &quot;=&quot; value, see here:<br>
<br>
<a href="http://tools.ietf.org/html/rfc2616#section-3.7" target="_blank">http://tools.ietf.org/html/rfc2616#section-3.7</a><br>
<a href="http://tools.ietf.org/html/rfc2616#section-3.6" target="_blank">http://tools.ietf.org/html/rfc2616#section-3.6</a><br>
<div class="im"><br>
&gt; I have gzip_types set to application/javascript, but the added charset<br>
&gt; part seems to throw off ngx_http_test_content_type()<br>
&gt;<br>
&gt; This simple patch included below seems to fix it, but it&#39;s not exactly<br>
&gt; production ready.<br>
&gt;<br>
&gt; Is there another way to make this work ?<br>
<br>
</div>Valid charset specifications should work as is.  Other parameters<br>
will confuse content type testing, but this isn&#39;t believed to be<br>
widely used.<br>
<font color="#888888"><br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://thewarezscene.org" target="_blank">Warez Scene</a> <a href="http://www.nexusddl.com" target="_blank">Free Rapidshare Downloads</a><br><br>