Forum Discussion
thagmann_128177
Mar 27, 2005Nimbostratus
So based on all of the changes we talked about, I just want to double-check that I now have the right rule rule that removes the original rule + does the GZIP check in the ACCEPT-ENCODING Header.
I removed the original rule and I am assuming that the "exist" function will scan the entire header and thus instead of matching "Accept-Encoding" we can just match on "gzip". If there's no GZIP then no need to rewrite anything.
Would this rule incorporate everything we talked about so far?
=================================================================
rule gzip2 {
when HTTP_REQUEST {
if {[HTTP::header exist "gzip"]} {
HTTP::header replace "Accept-Encoding" "gzip"
event disable
}
}
}