Skip to content

Commit a589172

Browse files
committed
Need to use make here for initialization.
1 parent 581c663 commit a589172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ngcplogger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func (l *nGCPLogger) extractCaddyFromPayload(m map[string]any, entry *logging.En
402402
if val, exists := m["request"]; exists {
403403
hr := logging.HTTPRequest{
404404
Request: &http.Request{
405-
Header: http.Header{},
405+
Header: make(http.Header),
406406
},
407407
}
408408
v := val.(map[string]any)

0 commit comments

Comments
 (0)