> > (read the socket and loose data for subsequent calls ?)
> 
> Nope. You've lost me.

I mean parameters are lost for subsequent calls since
Template::Service::Apache instanciate Apache::Request with 'new' instead
of 'instance' method.

It could be a good idea to call instance instead of new, Andy ? 

Another patch to Apache::Template I sent in the past : 
in order to respect HEAD requests

-    $r->print($content);
+    $r->print($content) unless $r->header_only;


--- lib/Apache/Template.pm      2002-01-22 15:34:41.000000000 +0100
+++ /usr/local/lib/perl/5.6.1/Apache/Template.pm        2002-06-27 10:22:08.000000000 
++0200
@@ -92,7 +92,7 @@
 
     $SERVICE->headers($r, $template, \$content);
 
-    $r->print($content);
+    $r->print($content) unless $r->header_only;
 
     return OK;
 }
--- lib/Template/Service/Apache.pm      2002-01-22 15:11:51.000000000 +0100
+++ /usr/local/lib/perl/5.6.1/Template/Service/Apache.pm        2002-07-30 
+17:43:47.000000000 +0200
@@ -112,7 +112,7 @@
     my $all = $plist->{ all };
 
     return $params unless keys %$plist;
-    $request = Apache::Request->new($request);
+    $request = Apache::Request->instance($request);
 
     $params->{ env } = { %{ $request->subprocess_env() } }
         if $all or $plist->{ env };

Reply via email to