Commit bb251b64 authored by Robert Ricci's avatar Robert Ricci

Add some additional debugging about HTTP status code

parent 386a089b
......@@ -162,12 +162,18 @@ while (my $connection = $listen_socket->accept()) {
my $rv = run_gitmail(decode_json($request->content()),\%get_vars);
if ($rv == 0) {
if ($verbose) {
print "Returing status code " . RC_INTERNAL_SERVER_ERROR . "\n";
}
$connection->send_error(RC_INTERNAL_SERVER_ERROR);
$connection->close();
exit 1;
} else {
# This means it worked, but we are not going to return any
# content to the caller
if ($verbose) {
print "Returing status code " . RC_NO_CONTENT . "\n";
}
$connection->send_status_line(RC_NO_CONTENT);
$connection->close();
exit 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment