diff options
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |