chore: use accessor instead of property

pull/7047/head
Laurin 2025-06-03 00:46:16 +02:00
parent 4d9bf4a333
commit 4b8ced75a6
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ func (e Event) Origin() Module { return e.origin } // Returns the module t
func (e Event) CloudEvent() CloudEvent {
dataJSON, _ := json.Marshal(e.Data)
var source string
if e.origin == nil {
if e.Origin() == nil {
source = "caddy"
} else {
source = string(e.Origin().CaddyModule().ID)