Remove Accept-Encoding header
When you are not using compression in an HTTP template but you still want to get rid of the Accept-Encoding header. Or any other header.
Little more fancy:
when HTTP_REQUEST {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
}
}
Little more fancy:
when RULE_INIT {
set ::REMOVEHEADER "Accept-Encoding"
}
when HTTP_REQUEST {
if { [HTTP::header exists $::REMOVEHEADER] } {
HTTP::header remove $::REMOVEHEADER
}
}
0