You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by as...@hyperreal.org on 1998/08/04 00:55:27 UTC
cvs commit: modperl/lib/Apache Include.pm
ask 98/08/03 15:55:25
Modified: . Changes
lib/Apache Include.pm
Log:
Fixed problem with 'POST' requests when using Apache::Include
[Doug Bagley <do...@dejanews.com>] (It appears that on subrequests
like you are trying to perform, Apache wants to re-read the request
content. So what I did was to try to fool it into thinking there
was no content for the subrequest by setting the Content-length
header to "0".)
Tested by Vivek Khera <kh...@kciLink.com>
Revision Changes Path
1.100 +3 -0 modperl/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/modperl/Changes,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- Changes 1998/07/30 19:20:50 1.99
+++ Changes 1998/08/03 22:55:19 1.100
@@ -8,6 +8,9 @@
=item 1.15_01-dev
+Fixed problem with 'POST' requests when using Apache::Include
+[Doug Bagley <do...@dejanews.com>]
+
make $r->connection->remote_ip set-able [Doug Bagley <do...@dejanews.com>]
new experimental options PERL_SAFE_STARTUP and PERL_DEFAULT_OPMASK
1.3 +1 -0 modperl/lib/Apache/Include.pm
Index: Include.pm
===================================================================
RCS file: /home/cvs/modperl/lib/Apache/Include.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Include.pm 1998/02/10 21:32:25 1.2
+++ Include.pm 1998/08/03 22:55:21 1.3
@@ -24,6 +24,7 @@
my($self, $uri, $r) = @_;
$r ||= Apache->request;
my $subr = $r->lookup_uri($uri);
+ $subr->header_in("Content-length" => "0");
$subr->run;
return $subr->status;
}