diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http/http.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/http.go b/src/http/http.go index 8e9eac1..85fff5d 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -45,6 +45,8 @@ func Server() { logrus.Fatal(httpServer.ListenAndServe()) } +// downloadHandler handles requests to /download?file=<filename>&hash=<salted +// hash of the file> func downloadHandler(w http.ResponseWriter, r *http.Request) { query := r.URL.Query() |