aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/router.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 16:32:41 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 16:32:41 +0200
commit6b96b76d66a929a2b428505809fda23a19005c63 (patch)
treeef653cddb1c45ff23581cd562a5990626d4129af /pkg/handler/router.go
parente1664fcbc4685906d3dabc66bf947a17bce7efc0 (diff)
downloadcerrado-6b96b76d66a929a2b428505809fda23a19005c63.tar.gz
cerrado-6b96b76d66a929a2b428505809fda23a19005c63.tar.bz2
cerrado-6b96b76d66a929a2b428505809fda23a19005c63.zip
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.
Diffstat (limited to 'pkg/handler/router.go')
-rw-r--r--pkg/handler/router.go2
1 files changed, 1 insertions, 1 deletions
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)