Lyonsy_271608
Mar 24, 2017Altocumulus
Irule problem "contains then insert"
Hi Guys,
Looking to add an irule to fix a code issue until it can be fixed by the software team
when a request is made that contains native-billing i would like it to insert header named x-version with the value of 9.0
we have tried
when HTTP_REQUEST { if {{ [HTTP::uri] contains "native-billing" }} { HTTP::header insert "X-Version" "'9.0'" }
}
didnt work Any ideas
thanks is advance
figured it out didnt like the "'9.0'"
Changed to this and works
when HTTP_REQUEST { if { [HTTP::uri] contains "native-billing" } { HTTP::header insert "X-Version" "9" } }