Forum Discussion

steve_michaels's avatar
Nov 08, 2021
Solved

iRule script injection and chunked Response page issue

We are using a modified version of this iRule: https://devcentral.f5.com/s/articles/google-analytics-script-injection-911 (See our iRule below) to inject a script into HTTP Responses. This iRule wor...
  • Dario_Garrido's avatar
    Nov 09, 2021

    Hello Steve.

    Try to downgrade your HTTP connection in order to avoid "Transfer-Encoding: chunked"

    when HTTP_REQUEST {
    	HTTP::header remove "Accept-Encoding"
    	if { [HTTP::version] eq "1.1" } {
    		if { [HTTP::header is_keepalive] } {
    			HTTP::header replace "Connection" "Keep-Alive"
    		}
    		HTTP::version "1.0"
    	}
    }

    Regards,

    Dario.