diff options
Diffstat (limited to 'internal/httprange')
-rw-r--r-- | internal/httprange/http_reader.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/httprange/http_reader.go b/internal/httprange/http_reader.go index 474b589f..4e7db6bc 100644 --- a/internal/httprange/http_reader.go +++ b/internal/httprange/http_reader.go @@ -8,6 +8,7 @@ import ( "time" "gitlab.com/gitlab-org/gitlab-pages/internal/httptransport" + "gitlab.com/gitlab-org/gitlab-pages/internal/vfs" "gitlab.com/gitlab-org/gitlab-pages/metrics" ) @@ -41,6 +42,9 @@ type Reader struct { offset int64 } +// ensure that Reader is seekable +var _ vfs.SeekableFile = &Reader{} + // TODO: make this configurable/take an http client when creating a reader/ranged reader // instead https://gitlab.com/gitlab-org/gitlab-pages/-/issues/457 var httpClient = &http.Client{ |