Skip to content

Commit

Permalink
Item14404: Use status() function to set status
Browse files Browse the repository at this point in the history
Mod_perl doesn't like direct header tweaking.
  • Loading branch information
gac410 committed May 22, 2017
1 parent 0324256 commit a3fb8a4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ sub handle {

# clear redirect enforced by a checkpoint action
$response->deleteHeader( "Location", "Status" );
$response->pushHeader( "Status", $status );
$response->status($status);

# add validation key to HTTP header, if required
unless ( $response->getHeader('X-Foswiki-Validation') ) {
Expand Down

0 comments on commit a3fb8a4

Please sign in to comment.