You are here: Foswiki>Tasks Web>Item742 (23 Feb 2009, KennethLavrsen)Edit Attach

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

Priority: Urgent
Current State: Closed
Released In: 1.0.1
Target Release: patch
Applies To: Engine
Component: Foswiki::Engine
Reported By: GilmarSantosJr
Waiting For:
Last Change By: KennethLavrsen
distro:c684bcd80e68 PublishPlugin:4a6ba2cae512 made the following change to Foswiki::Engine::finalizeHeaders, among other updates:

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

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
Checkins distro:165c07647f36
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy