stas 2003/03/10 22:31:44
Modified: src/docs/2.0/user/handlers filters.pod Log: add a note that filters modifying their data's size should unset the C-L header Revision Changes Path 1.20 +10 -1 modperl-docs/src/docs/2.0/user/handlers/filters.pod Index: filters.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/handlers/filters.pod,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- filters.pod 6 Mar 2003 05:55:40 -0000 1.19 +++ filters.pod 11 Mar 2003 06:31:44 -0000 1.20 @@ -1610,6 +1610,16 @@ ] +[ + +HTTP request output filters should probably also unset the C-L header, +if the filter will changes the size of the data that goes through +it. (e.g. lc() filter shouldn't do it). However need to check if +Apache core output filters don't do that already. + + $filter->r->headers_out->unset('Content-Length'); + +] =head1 Writing Efficient Filters META: to be written @@ -1627,7 +1637,6 @@ be taken so not to read the data in, unless it's really necessary. ] - =head1 Maintainers