Skip to content

Commit

Permalink
Respond with status 500 Internal Server Error where expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjensen committed Jan 18, 2019
1 parent 887e3b3 commit 1d24530
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Vend/Dispatch.pm
Expand Up @@ -694,6 +694,11 @@ EOF
;
$template = get_locale_message(500, $template, $err);
logError($err);
$Vend::StatusLine = <<EOF;
Status: 500 Internal Server Error
Content-Type: text/plain
EOF
undef $Vend::write_redirect;
response($template);
}

Expand Down Expand Up @@ -1892,6 +1897,10 @@ EOF
;
$template = get_locale_message(500, $template, $err);
logError($err);
$Vend::StatusLine = <<EOF;
Status: 500 Internal Server Error
Content-Type: text/plain
EOF
undef $Vend::write_redirect;
response($template);
}
Expand Down

0 comments on commit 1d24530

Please sign in to comment.