Foswiki on GitHub is open for business! Next release meeting: Monday September 1, 1300Z

Item742: Wrong print in Foswiki::Engine::finalizeHeaders

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine Foswiki::Engine  
Foswikirev:1078 made the following change to Foswiki::Engine::finalizeHeaders, among other updates:

     if ( $req && $req->method() eq 'HEAD' ) {
-        $res->body('');
+        $res->print('');
         $res->deleteHeader('Content-Length');
     }

In this specif case the response body must be discarded, so the correct behavior is to call ->body instead of ->print

-- GilmarSantosJr - 11 Jan 2009

ItemTemplate edit

Summary Wrong print in Foswiki::Engine::finalizeHeaders
ReportedBy GilmarSantosJr
Codebase 1.0.0, 1.0.0 beta3, 1.0.0 beta2, 1.0.0 beta1, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Foswiki::Engine
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:1934
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r4 - 23 Feb 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License