Software /
code /
prosody
Changeset
11096:dd1713862c20
net.http.server: Default to HTTP result code 500 when promise is rejected
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 28 Sep 2020 16:21:41 +0100 |
parents | 11095:1ea3574b19c8 |
children | 11097:f23cf8e2e2ff |
files | net/http/server.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/server.lua Mon Sep 28 01:55:35 2020 +0200 +++ b/net/http/server.lua Mon Sep 28 16:21:41 2020 +0100 @@ -197,6 +197,7 @@ result:next(function (ret) handle_result(request, response, ret); end, function (err) + response.status_code = 500; handle_result(request, response, err or 500); end); return true;