Permalink
Browse files

Item14404: Use status() function to set status

Mod_perl doesn't like direct header tweaking.
  • Loading branch information...
gac410 committed May 22, 2017
1 parent 0324256 commit a3fb8a4664e056fd25e8a644c62cc2f5a55cc829
Showing with 1 addition and 1 deletion.
  1. +1 −1 NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin/RestSave.pm
@@ -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') ) {

0 comments on commit a3fb8a4

Please sign in to comment.