Skip to content

Commit

Permalink
Item8706: r7403 made the cache work and revealed that a gzipped cache…
Browse files Browse the repository at this point in the history
… must not be space-trimmed

git-svn-id: http://svn.foswiki.org/trunk@7405 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed May 14, 2010
1 parent f230e92 commit ce1527a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/lib/Foswiki.pm
Expand Up @@ -771,12 +771,6 @@ s/${TranslationToken}RENDERZONE{(.*?)}${TranslationToken}/_renderZoneById($this,
# Remove <nop> and <noautolink> tags
$text =~ s/([\t ]?)[ \t]*<\/?(nop|noautolink)\/?>/$1/gis;

$this->generateHTTPHeaders( $pageType, $contentType, $text, $cachedPage );

# SMELL: null operation. the http headers are written out
# during Foswiki::Engine::finalize
# $hdr = $this->{response}->printHeaders;

# Trim whitespace from the start and end of selected content types
if ($contentType =~ m#text/html#) {
# Use \s to match unicode whitespace, in anticipation of the day when
Expand All @@ -785,6 +779,12 @@ s/${TranslationToken}RENDERZONE{(.*?)}${TranslationToken}/_renderZoneById($this,
$text =~ s#\s+$##;
}

$this->generateHTTPHeaders( $pageType, $contentType, $text, $cachedPage );

# SMELL: null operation. the http headers are written out
# during Foswiki::Engine::finalize
# $hdr = $this->{response}->printHeaders;

$this->{response}->print($text);
}

Expand Down

0 comments on commit ce1527a

Please sign in to comment.