Skip to content

Commit c67b086

Browse files
committed
fix panic with nil headers
1 parent 9d982bb commit c67b086

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

executor/lua_executor.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ func (*LuaExecutor) executeHTMLMessage(ctx context.Context, fields log.Fields, L
247247
)
248248
defer span.End()
249249

250-
res := &ScriptResult{IsHTML: true}
250+
res := &ScriptResult{
251+
IsHTML: true,
252+
Headers: make(map[string]string),
253+
}
251254

252255
log.WithFields(fields).Debug("Running HTML based script")
253256
gMethod := L.GetGlobal(msg.Method)

0 commit comments

Comments
 (0)