mitchellh/goamz — pull request #37 by dqminh (2014-04-11 10:24:11+00:00)
Title: do not close response until buildError finishes

`s3_test#TestGetNotFound` failed because `run` tries to decode `hresp.Body`, but
the body's already closed. This patch defers `hresp.Body.Close()` until it
finishes building the error.