diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:49:41 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:49:41 +0100 |
commit | 6acb9e884a953ae33765959d8f2ac04849b14112 (patch) | |
tree | d3ce2a6fa909bdbbceb3f2023c072cd5916ec5dc /src | |
parent | bb180cfcace0c74a29b76835a9672aacde610957 (diff) |
function comment for the download handler
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() |