aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)