Software /
code /
prosody
Comparison
tools/http-status-codes.lua @ 13078:6da83deb8d7f 0.12
util.error: Fix error on conversion of invalid error stanza, fix #1805
Error stanzas should have an <error> element, but if you pass a
stanza without one to util.error.from_stanza() it triggers an attempt to
index a nil value, which this patch avoids.
In the conditional, it should be safe to assume error_tag is non-nil
since condition can't have those values then.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 19 Apr 2023 11:32:53 +0200 |
parent | 12271:f31bb79f51d7 |
child | 13142:879a6a33c21b |
comparison
equal
deleted
inserted
replaced
13077:de42a93a7c8d | 13078:6da83deb8d7f |
---|