From 6b96b76d66a929a2b428505809fda23a19005c63 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 23 Jun 2024 16:32:41 +0200 Subject: fix: Fix bin file not being writen to tar FileContent was not working for bin file (nor was meant to). Moving to blob reader solves the issue. --- pkg/handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/handler/router.go') diff --git a/pkg/handler/router.go b/pkg/handler/router.go index 2293ab6..6ee7ba3 100644 --- a/pkg/handler/router.go +++ b/pkg/handler/router.go @@ -41,7 +41,7 @@ func MountHandler( mux.HandleFunc("/{name}/tree/{ref}/{rest...}", gitHandler.Tree) mux.HandleFunc("/{name}/blob/{ref}/{rest...}", gitHandler.Blob) mux.HandleFunc("/{name}/log/{ref}/", gitHandler.Log) - mux.HandleFunc("/{name}/archive/{refs...}", gitHandler.Archive) + mux.HandleFunc("/{name}/archive/{file}", gitHandler.Archive) mux.HandleFunc("/config", configHandler) mux.HandleFunc("/about", aboutHandler.About) mux.HandleFunc("/", gitHandler.List) -- cgit v1.2.3