In message <4b18488d.8030...@joetify.com>, Joe Williams writes: >I am attempting to write my own error message in vcl_error and am >running into an issue with escaping out "{" and "}". > > synthetic {"\{"error":"not_found","reason":"missing"\} > >This compiles and works but when I produce the error I get the slashes >in the response: > >r...@ubuntu:~# curl http://localhost:6081/test/adsf >\{"error":"not_found","reason":"missing"\} > >I searched around and didn't find anything, is it possible to escape out >the curly braces and keep them from showing up in the response?
Yes I belive %7b ... %7d will work. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc