storage: fix response header check in reader.
Fix a small bug where the wrong header was being checked for.
@@ -232,7 +232,7 @@ func (o *ObjectHandle) NewRangeReader(ctx context.Context, offset, length int64)
body = emptyBody
}
var metaGen int64
- if res.Header.Get("X-Goog-Generation") != "" {
+ if res.Header.Get("X-Goog-Metageneration") != "" {
metaGen, err = strconv.ParseInt(res.Header.Get("X-Goog-Metageneration"), 10, 64)
if err != nil {
return nil, err
