NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

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 LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads