Skip to content

Commit 12d6f9a

Browse files
authored
fix: return empty map instead of nil when initializing (#56)
1 parent 10bb57b commit 12d6f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extism_pdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func NewHTTPRequest(method HTTPMethod, url string) *HTTPRequest {
356356
return &HTTPRequest{
357357
meta: HTTPRequestMeta{
358358
URL: url,
359-
Headers: nil,
359+
Headers: map[string]string{},
360360
Method: method.String(),
361361
},
362362
body: nil,

0 commit comments

Comments
 (0)