about summary refs log tree commit diff
path: root/tools/nixery/server/storage/storage.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-10-28T17·18+0100
committerVincent Ambo <github@tazj.in>2019-10-28T21·31+0100
commit167a0b32630ed86b3a053e56fa499957872d7b38 (patch)
treeeb45026ee9d1d22df0b1ab1fe5c68e20fcd4b0df /tools/nixery/server/storage/storage.go
parente5bb2fc887f8d4e7216a1dfcbfa81baac2b09cfd (diff)
refactor(server): Pass HTTP request to storage.ServeLayer
The request object is required for some serving methods (e.g. the
filesystem one).
Diffstat (limited to 'tools/nixery/server/storage/storage.go')
-rw-r--r--tools/nixery/server/storage/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nixery/server/storage/storage.go b/tools/nixery/server/storage/storage.go
index 15b8355e6ef5..ad10d682e93a 100644
--- a/tools/nixery/server/storage/storage.go
+++ b/tools/nixery/server/storage/storage.go
@@ -30,5 +30,5 @@ type Backend interface {
 
 	// Serve provides a handler function to serve HTTP requests
 	// for layers in the storage backend.
-	ServeLayer(digest string, w http.ResponseWriter) error
+	ServeLayer(digest string, r *http.Request, w http.ResponseWriter) error
 }