Forum Discussion
hooleylist
May 05, 2009Cirrostratus
Hi Sorin,
Make sure to explicitly disable the stream filter if the response type isn't text. This is something that SOL8115 doesn't show, but should.
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] starts_with "text/" }{
STREAM::expression "@abc@123@"
STREAM::enable
} else {
STREAM::disable
}
}
Also, if the string you're replacing is a different length than the replacement string, you'll need to create a custom HTTP profile with response chunking set to rechunk. This gets around a mismatch in content length as chunked responses don't use a content length header.
Aaron