Forum Discussion

Lyonsy_271608's avatar
Lyonsy_271608
Icon for Altocumulus rankAltocumulus
Mar 24, 2017
Solved

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-...
  • Lyonsy_271608's avatar
    Mar 24, 2017

    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" } }