download: initial implementation

This commit is contained in:
mappu 2017-08-13 16:32:14 +12:00
parent e117402a85
commit 3d3077b3bd

View File

@ -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 {