Hi Xfeep,i have a small query regarding the header manipulation .I tried something like((JavaLazyHeaderMap) request.get(Constants.HEADERS)).put("x-testHeadr", "test");to add a few header values from the rewrite handler.conf file:handler_type 'java';rewrite_handler_namefrom java i implemented NginxJavaRingHandlerI was getting an error saying2014-12-19 05:10:15[error]:put request header not supported now!java.lang.UnsupportedOperationException: put request header not supported now!at nginx.clojure.java.JavaLazyHeaderMap.put(JavaLazyHeaderMap.java:238)Is there an alternative way of adding or manipulating the headers before sending them to proxy pass.Thanks you.Regards,James
NginxClojureRT.setNGXVariable(((NginxJavaRequest) request).nativeRequest(), "myvar", "NGINX_VAR1");
and
((NginxJavaRequest) request).setVariable("myvar", "NGINX_VAR1");??
--
You received this message because you are subscribed to the Google Groups "Nginx-Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginx-clojur...@googlegroups.com.
To post to this group, send email to nginx-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nginx-clojure/eb9748c8-31ae-42c6-8472-8ff81fb1b83f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.