From 620b3f54b2c792a667c3268e8b723e124db65a5c Mon Sep 17 00:00:00 2001 From: Darren Dowker Date: Wed, 5 Jun 2024 22:56:07 -0700 Subject: [PATCH] adjust offset --- broker/client/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/client/reader.go b/broker/client/reader.go index c442b21e..bc37650f 100644 --- a/broker/client/reader.go +++ b/broker/client/reader.go @@ -186,7 +186,7 @@ func (r *Reader) Read(p []byte) (n int, err error) { return 0, fmt.Errorf("TransformSignedURL unsupported scheme: %s", fragURL.Scheme) } if r.direct, err = gcs.openWithOffset(r.ctx, fragURL, - *r.Response.Fragment, r.Request.Offset); err == nil { + *r.Response.Fragment, r.Request.Offset-r.Response.Fragment.Begin); err == nil { n, err = r.Read(p) // Recurse to attempt read against opened |r.direct|. } } else {