about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:49:41 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:49:41 +0100
commit6acb9e884a953ae33765959d8f2ac04849b14112 (patch)
treed3ce2a6fa909bdbbceb3f2023c072cd5916ec5dc
parentbb180cfcace0c74a29b76835a9672aacde610957 (diff)
function comment for the download handler
-rw-r--r--src/http/http.go2
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()