You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/05/22 22:09:04 UTC

DO NOT REPLY [Bug 46678] Fixed Content-Length using mod_ext_filter with mode=input

https://issues.apache.org/bugzilla/show_bug.cgi?id=46678





--- Comment #1 from Jon Jensen <je...@gmail.com>  2009-05-22 13:09:02 PST ---
I've confirmed this behavior on Apache 2.2.3 (Debian Etch).

Also noteworthy is this only seems to happen if the request is handled locally.
It works fine when using a reverse proxy. For example:

# foo gets replaced with foobarbaz, but content-length is unchanged, resulting
# in possible truncation
ExtFilterDefine foobar mode=output cmd="/bin/sed s/foo/foobarbaz/g"
<Location /my/path>
  SetOutputFilter foobar
</Location>

# foo gets replaced with foobarbaz and content-length is adjusted accordingly
RewriteEngine On
RewriteRule ^/my/path http://otherserver/my/path [P]
ExtFilterDefine foobar mode=output cmd="/bin/sed s/foo/foobarbaz/g"
<Location /my/path>
  SetOutputFilter foobar
</Location>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org