--
If i set the header its working else its an unmarshal error
heimdall code
// Get makes a HTTP GET request to provided URL
func (c *Client) Get(url string, headers http.Header) (*http.Response, error) {
var response *http.Response
request, _ := http.NewRequest(http.MethodGet, url, nil)
request.Header.Set("Authorization", headers["Authorization"][0])
request.Header = headers
//if i add the below line code my api returns success response
request.Header.Set("Authorization", request.Header["Authorization"][0])
return c.Do(request)
}
my http get method call using heimdall
-- If i set the header its working else its an unmarshal error heimdall code
heimdall code ref