the ID is in the _response_ (#3260)

This commit is contained in:
cmasone-attic
2017-03-08 08:08:01 -08:00
committed by GitHub
parent 8a80f7381f
commit 7ac08e0ad1

View File

@@ -95,7 +95,7 @@ func (s3tr *s3TableReader) readRange(p []byte, rangeHeader string) (n int, err e
if impl, ok := s3tr.s3.(*s3.S3); ok {
req, result := impl.GetObjectRequest(input)
err := req.Send()
return result, req.RequestID, req.HTTPRequest.Header.Get("x-amz-id-2"), err
return result, req.RequestID, req.HTTPResponse.Header.Get("x-amz-id-2"), err
}
result, err := s3tr.s3.GetObject(input)
return result, "FAKE", "FAKE", err