When using nginx (alone or as a reverse proxy for apache), you must set
Content-length header for json responses. Without this, responses above some
size limit will be prefixed with a hex number (the length of the json encoded
string) and suffixed with a zero ("0"). This is because nginx treats the
response as chunked and adds the Transfer-Encoding: chuncked header to it.
See also http://en.wikipedia.org/wiki/Chunked_transfer_encoding
Original issue reported on code.google.com by lanyi.ro...@gmail.com on 8 Apr 2012 at 9:57
Original issue reported on code.google.com by
lanyi.ro...@gmail.com
on 8 Apr 2012 at 9:57Attachments: