Software / code / prosody-modules
Comparison
mod_rest/mod_rest.lua @ 6245:ea58d2893afb
Merge update
| author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
|---|---|
| date | Tue, 29 Apr 2025 23:27:06 +0700 |
| parent | 6244:c71d8bc77c95 |
| child | 6272:ed6fa901cf94 |
comparison
equal
deleted
inserted
replaced
| 6232:d72010642b31 | 6245:ea58d2893afb |
|---|---|
| 662 "application/json", | 662 "application/json", |
| 663 }; | 663 }; |
| 664 | 664 |
| 665 -- strip some stuff, notably the optional traceback table that casues stack overflow in util.json | 665 -- strip some stuff, notably the optional traceback table that casues stack overflow in util.json |
| 666 local function simplify_error(e) | 666 local function simplify_error(e) |
| 667 if not e then return end | |
| 667 return { | 668 return { |
| 668 type = e.type; | 669 type = e.type; |
| 669 condition = e.condition; | 670 condition = e.condition; |
| 670 text = e.text; | 671 text = e.text; |
| 671 extra = e.extra; | 672 extra = e.extra; |