From 3d3077b3bdd7f6edd293a8bc98e563f3ecd077dc Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Aug 2017 16:32:14 +1200 Subject: [PATCH] download: initial implementation --- Router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Router.go b/Router.go index 00336f5..a3065cf 100644 --- a/Router.go +++ b/Router.go @@ -91,7 +91,7 @@ func (this *ArchiveServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { this.legacyRoute(w, r) } else if r.URL.Path == `/download` { - arc.renderError(w, "Not implemented.") // FIXME + this.serveDownload(w) } else if matches := this.rxViewRoot.FindStringSubmatch(r.URL.Path); len(matches) > 0 { if ls := this.lookupSource(matches[1]); ls != nil {