mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.error: Move default for numeric error code to net.http.server
Stanza errors can also have numbers but these are a legacy thing and rarely used, except in MUC. HTTP errors on the other hand always have a number.
This commit is contained in:
parent
ffcb8303cc
commit
87d0125802
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ local function new(e, context, registry)
|
|||
type = template.type or "cancel";
|
||||
condition = template.condition or "undefined-condition";
|
||||
text = template.text;
|
||||
code = template.code or 500;
|
||||
code = template.code;
|
||||
|
||||
context = context or template.context or { _error_id = e };
|
||||
}, error_mt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue