Add exception for Igloo user-agent
Anirudh Oppiliappan x@icyphox.sh
Wed, 10 Nov 2021 20:40:36 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
main.go
→
main.go
@@ -77,7 +77,7 @@ }
runHooks(abs) fileUrl := s.url + "/" + newFile - if strings.Contains(useragent, "curl/") { + if strings.Contains(useragent, "curl/") || strings.Contains(useragent, "Igloo/") { fmt.Fprintf(w, "%v", fileUrl) } else { http.Redirect(w, r, fileUrl, http.StatusSeeOther)