an unexpected newline appears when use memc and echo_location_async, how to delete the newline ?

agentzh agentzh at
Sat Jun 16 02:08:09 UTC 2012


On Fri, Jun 15, 2012 at 9:49 PM, Xiangong Yang <monitor.xoyo at> wrote:
> The Unexpect  incorrect Output: (Current Configuration)
>  himycallback201203455({"property_23458":24
> })
> The new line after 24 is unexpected. and how can l delete the new line ?

Please ensure that the value you inserted into memcached does not have
the trailing new line by using telnet to access your memcached, like

    $ telnet <your-memcached-host> <your-memcached-port>
    get property_23458

If the original value in your memcached server contains a trailing
newline, then neither ngx_memc nor ngx_echo will automatically strip
it for you.

Also, to do JSONP padding in nginx, you're recommended to use the
ngx_xss module which is more efficient and more secure:

Best regards,

More information about the nginx mailing list