title: GO: How to solve "transport connection broken: too many transfer encodings: ["chunked" "chunked"]" error in a http response
body: <p>The server is adding a double &quot;chunked&quot;transfer encoding, and I got this error message in my response. I don't have access to the server, by Postman the request returns the response normally, but version &gt; 16.2 of Go is returning this error. The resp variable returns nil and the error variable returns &quot;net/http: HTTP/1.x transport connection broken: too many transfer encodings: [&quot;chunked&quot; &quot;chunked&quot;]&quot;. Is it possible to modify the response encoding by the client?</p>
  <pre><code>
      client := http.Client{}
      
      url := config.Ctx.ProtocolUrl + &quot;http:localhost:4200/execution/9832138938&quot;
      req, _ := http.NewRequest(http.MethodGet, url,  nil)
  
      resp, err := client.Do(req)
  
      if err != nil {
          log.Print(err)
          return nil
      } else {
          if resp.StatusCode == 200 {
              body, _ := ioutil.ReadAll(resp.Body)
              defer resp.Body.Close()
              err = json.Unmarshal(body, &amp;response)
              if err != nil {
                  return response
              }
          }
      }
  
  </code></pre>