mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.http.server: Treat promise rejection without value as a HTTP 500 error
This commit is contained in:
parent
5cac177270
commit
58990598f2
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ local function handle_result(request, response, result)
|
|||
result:next(function (ret)
|
||||
handle_result(request, response, ret);
|
||||
end, function (err)
|
||||
handle_result(request, response, err);
|
||||
handle_result(request, response, err or 500);
|
||||
end);
|
||||
return true;
|
||||
elseif result_type == "table" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue