an unexpected newline appears when use memc and echo_location_async, how to delete the newline ?
agentzh at gmail.com
Sat Jun 16 02:08:09 UTC 2012
On Fri, Jun 15, 2012 at 9:49 PM, Xiangong Yang <monitor.xoyo at gmail.com> wrote:
> The Unexpect incorrect Output: (Current Configuration)
> 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>
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:
More information about the nginx