aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2021-11-10 20:40:36 +0530
committerAnirudh Oppiliappan <x@icyphox.sh>2021-11-10 20:40:36 +0530
commitdaa1c66a38a7f414f2bc559bbae86605d4318722 (patch)
tree0f28e0b99d64712395fbec028e6fb2de187e2cf9
parentffa051e58ce93755452e18655f74be200bceae0f (diff)
downloadfsrv-master.tar.gz
Add exception for Igloo user-agentHEADmaster
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 007a083..01312b4 100644
--- a/main.go
+++ b/main.go
@@ -77,7 +77,7 @@ func (s *settings) uploadFile(w http.ResponseWriter, r *http.Request) {
77 runHooks(abs) 77 runHooks(abs)
78 78
79 fileUrl := s.url + "/" + newFile 79 fileUrl := s.url + "/" + newFile
80 if strings.Contains(useragent, "curl/") { 80 if strings.Contains(useragent, "curl/") || strings.Contains(useragent, "Igloo/") {
81 fmt.Fprintf(w, "%v", fileUrl) 81 fmt.Fprintf(w, "%v", fileUrl)
82 } else { 82 } else {
83 http.Redirect(w, r, fileUrl, http.StatusSeeOther) 83 http.Redirect(w, r, fileUrl, http.StatusSeeOther)