Mercurial > prosody-modules
view mod_pubsub_forgejo/webhook-examples/push/headers @ 6514:668b1f0a4dc6
mod_c2s_limit_sessions: Fix check when it's the first connection
Creation of the sessions[username] entry happens after the
"pre-resource-bind" event, before the "resource-bind" event.
Thus, for a users first connection, it may not exist.
This led to an 'attempt to index a nil value' error, fixed here.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 08 Apr 2026 15:56:38 +0200 |
| parents | 131b8bfbefb4 |
| children |
line wrap: on
line source
Content-Type: application/json X-Forgejo-Delivery: eec91577-9e9a-4914-929e-b7870f77fd57 X-Forgejo-Event: push X-Forgejo-Event-Type: push X-Forgejo-Signature: 0bd1c7325306a6f469df72d9966b2e89cebcf1fb790a1926ef9ff094141eed26 X-GitHub-Delivery: eec91577-9e9a-4914-929e-b7870f77fd57 X-GitHub-Event: push X-GitHub-Event-Type: push X-Gitea-Delivery: eec91577-9e9a-4914-929e-b7870f77fd57 X-Gitea-Event: push X-Gitea-Event-Type: push X-Gitea-Signature: 0bd1c7325306a6f469df72d9966b2e89cebcf1fb790a1926ef9ff094141eed26 X-Gogs-Delivery: eec91577-9e9a-4914-929e-b7870f77fd57 X-Gogs-Event: push X-Gogs-Event-Type: push X-Gogs-Signature: 0bd1c7325306a6f469df72d9966b2e89cebcf1fb790a1926ef9ff094141eed26 X-Hub-Signature: sha1=eacf3469341d9deecfcfbb3a63a4f1d55e60226c X-Hub-Signature-256: sha256=0bd1c7325306a6f469df72d9966b2e89cebcf1fb790a1926ef9ff094141eed26
