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