mirror of
https://github.com/helm/helm.git
synced 2026-02-20 00:13:02 -05:00
It just makes the code better, I suppose the following is rational: - use standard libaray common constants instead of hardcode though it's really common - close the response body even if the http status code is not 200 OK. The doc says *It is the caller's responsibility to close Body*. - move the `bytes.Buffer` return value declaration where it gets used. Signed-off-by: longkai <im.longkai@gmail.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| doc.go | ||
| getter.go | ||
| getter_test.go | ||
| httpgetter.go | ||
| httpgetter_test.go | ||
| ocigetter.go | ||
| ocigetter_test.go | ||
| plugingetter.go | ||
| plugingetter_test.go | ||