sidzi
|
ec65c6b3c5
|
Refactor requireHttpCodes for segregated error handling (#11287)
|
2021-10-28 12:24:23 -04:00 |
Daniel Nephin
|
de1f766d03
|
api: properly close the response body
reads resp.Body until EOF, so that the http client is able to re-use the TCP connection.
|
2021-06-14 18:52:59 -04:00 |
Rémi Lapeyre
|
5e33428b22
|
Always set the Content-Type header when a body is present (#10204)
* Always set the Content-Type header when a body is present
Closes https://github.com/hashicorp/consul/issues/10011
* Add Changelog entry
* Add more Content-Type exceptions
* Fix tests
|
2021-05-25 16:03:48 +01:00 |
Ryan Uber
|
5172b21ee8
|
api: initial import from armon/consul-api
|
2015-01-06 10:40:00 -08:00 |