it means that I should not apply this patch: <a href="http://www.ruby-forum.com/attachment/1891/patch.chunked">http://www.ruby-forum.com/attachment/1891/patch.chunked</a><div>from: <a href="http://www.ruby-forum.com/topic/152435">http://www.ruby-forum.com/topic/152435</a> </div>
<div>??</div><div><br></div><div>Regards, </div><div><br></div><div>Camilo Aguilar</div><div><br><div><br><br><div class="gmail_quote">On Wed, Sep 23, 2009 at 12: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 Wed, Sep 23, 2009 at 11:45:09AM -0500, Camilo Aguilar wrote:<br>
<br>
&gt; Hi everyone,<br>
&gt; I am trying to use nginx as a reverse proxy and I am getting garbage symbols<br>
&gt; in my json responses:<br>
&gt;<br>
&gt; 6a<br>
&gt; {&quot;codedField&quot;:[{&quot;code&quot;:&quot;01&quot;,&quot;name&quot;:&quot;Dpto01&quot;},{&quot;code&quot;:&quot;02&quot;,&quot;name&quot;:&quot;Dpto02&quot;},{&quot;code&quot;:&quot;03&quot;,&quot;name&quot;:&quot;Dpto03&quot;}]}<br>

&gt; 0<br>
&gt;<br>
&gt;<br>
&gt; I have tried with and without gzip and happens the same.<br>
&gt;<br>
&gt; My backend responses are well formed json and then I think that it should be<br>
&gt; a nginx issue.<br>
<br>
</div>Looks like your backend returns Transfer-Encoding: chunked to<br>
HTTP/1.0 requests (behaviour explicitly forbidden by RFC2616).<br>
<br>
Fixing backend should help.<br>
<font color="#888888"><br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; Can anybody help me please ?<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Camilo Aguilar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;   There are two ways of constructing a software design: One way is to make<br>
&gt; it so simple that there are obviously no deficiencies, and the other way is<br>
&gt; to make it so complicated that there are no obvious deficiencies. The first<br>
&gt; method is far more difficult.  -C. A. R. Hoare<br>
&gt;<br>
&gt;   Any fool can write code that a computer can understand. Good programmers<br>
&gt; write code that humans can understand. - Martin Fowler<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>   There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.  -C. A. R. Hoare<br>
<br>   Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler<br><br>
</div></div>