Skip to content

Commit

Permalink
Item611: noticed that the compat 404 redirects weren't being set to 200
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@1675 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Dec 30, 2008
1 parent 3e92237 commit 2e3ac25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lib/Foswiki/UI/View.pm
Expand Up @@ -524,6 +524,8 @@ sub viewfile {
my $length = length($fileContent);
my $dispo = 'inline;filename=' . $fileName;

#re-set to 200, in case this was a 404 or other redirect
$session->{response}->status(200);
$session->{response}->header(
-type => $type, qq(Content-Disposition="$dispo") );
$session->{response}->print($fileContent);
Expand Down

0 comments on commit 2e3ac25

Please sign in to comment.