about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:50:56 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:50:56 +0100
commita70d99a893dad259309773091f85c8321648228d (patch)
tree675659e54c6cc1756f852f92d3c1829fc0c85db9
parent7aeb5dc30b6841275b79283ab7e87814510ef50c (diff)
comment
-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 f4569d5..dc23037 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -131,6 +131,8 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 
 	query := r.URL.Query()
 
+	// if the ?download query is present, retirect to the download handler with
+	// the needed information
 	if query["download"] != nil {
 
 		// strip the file before and after the request