dirken
May 02, 2012Nimbostratus
remove tcp port from Location header in redirect
Hi folks, newbie and tasked to remove the tcp port from a redirect's Location header. Without a test system I cannot check it and would appreciate any feedback before going live. Would this iRule work?
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
[string map [list :52600 ""] [HTTP::header Location]]
}
}