Forum Discussion
Lee_Sutcliffe
Dec 04, 2018Nacreous
Hi Aditya,
You were almost there, you don't need to set
HTTP::uri
and the final }
to close the HTTP_REQUEST event was missing. I've also remove some necessary parenthesis and the was no advantage in setting $newUri
other than perhaps readability.
when HTTP_REQUEST {
set var1 "xxx/yyy"
if {[HTTP::uri] contains $var1} {
HTTP::uri [string map -nocase [list $var1 ""] [HTTP::uri]]
pool Pool_1
}
}