From 6acb9e884a953ae33765959d8f2ac04849b14112 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:49:41 +0100 Subject: function comment for the download handler --- src/http/http.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http') 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=&hash= func downloadHandler(w http.ResponseWriter, r *http.Request) { query := r.URL.Query() -- cgit 1.4.1