<html><body bgcolor="#FFFFFF"><div>Hello,</div><div><br></div><div>I'm testing it from a browser and with curl as well and I got the same.</div><div>When I bypass nginx the response is correct. When I request from nginx, the lenght is added at the beginning and 0 at the end of the json I would expect.</div><div><br>--<div>Luc</div></div><div><br>Le Sep 24, 2011 à 13:49, Richard Kearsley <<a href="mailto:Richard.Kearsley@m247.com">Richard.Kearsley@m247.com</a>> a écrit :<br><br></div><div></div><blockquote type="cite"><div>
<div>How are you testing it?</div>
<div>That looks like results I saw using telnet but those numbers do not appear with a http client such as curl<br>
<br>
</div>
<div><br>
On 24 Sep 2011, at 12:43, "Luc Juggery" <<a href="mailto:luc.juggery@gmail.com"><a href="mailto:luc.juggery@gmail.com">luc.juggery@gmail.com</a></a>> wrote:<br>
<br>
</div>
<div></div>
<blockquote type="cite">
<div>Hello,<br>
<br>
I'm using Nginx as a front end to my node.js application, nginx proxying https request to my app.<br>
When the browser gets the response back, instead of pure json ({"error":"query error","message":"Parameter(s) missing: user,password"}), I receive something like:<br>
<br>
47<br>
{"error":"query error","message":"Parameter(s) missing: user,password"}<br>
0<br clear="all">
<br>
I use 'more_clear_headers' module but do not have any luck.<br>
<br>
This is the config I use:<br>
<br>
server {<br>
listen 443;<br>
server_name <a href="http://my.server.com"></a><a href="http://my.server.com"><a href="http://my.server.com">my.server.com</a></a>;<br>
ssl on;<br>
ssl_certificate certificate.pem;<br>
ssl_certificate_key privatekey.pem;<br>
<br>
keepalive_timeout 70;<br>
<br>
location / {<br>
more_clear_headers 'Content-Length'; # Does not work as I would expect<br>
proxy_pass <a href="https://localhost:8443"></a><a href="https://localhost:8443"><a href="https://localhost:8443">https://localhost:8443</a></a>;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_set_header Host $http_host;<br>
proxy_buffering off;<br>
proxy_buffers 8 8k;<br>
} <br>
}<br>
<br>
Would you have any idea ?<br>
Thanks a lot for your help,<br>
<br>
-- <br>
Luc<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>nginx mailing list</span><br>
<span><a href="mailto:nginx@nginx.org"><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></a></span><br>
<span><a href="http://mailman.nginx.org/mailman/listinfo/nginx"><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></a></span></div>
</blockquote>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></span><br><span><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></span></div></blockquote></body></html>