From be15825f0b4b854c929057a0b8f6358ce6061c93 Mon Sep 17 00:00:00 2001 From: Johannes Steu Date: Fri, 17 May 2024 12:18:29 +0200 Subject: [PATCH] bugfix: init http header for new endpoints --- http/http_endpoint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/http_endpoint.go b/http/http_endpoint.go index b94f910..c8474c2 100644 --- a/http/http_endpoint.go +++ b/http/http_endpoint.go @@ -131,6 +131,7 @@ func NewEndpoint(opts ...HTTPEndpointOption) goload.Endpoint { options := &EndpointOptions{ method: http.MethodGet, body: http.NoBody, + header: make(http.Header), client: defaultClient, validateResponse: func(res *http.Response) error { if res.StatusCode < 200 || res.StatusCode > 299 {