when HTTP_RESPONSE {
STREAM::expression {@http://xxx.com/@https://xxx.yanfeng.com/@ }
STREAM::enable
if { [HTTP::header Location] ne "" } {
HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location]]
}
}
when HTTP_RESPONSE {
STREAM::expression {@http://xxx.com/@https://xxx.yanfeng.com/@ }
STREAM::enable
if { [HTTP::header Location] ne "" } {
HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location]]
}
}