all repos — fsrv @ daa1c66a38a7f414f2bc559bbae86605d4318722

filehost server for x.icyphox.sh

Add exception for Igloo user-agent
Anirudh Oppiliappan x@icyphox.sh
Wed, 10 Nov 2021 20:40:36 +0530
commit

daa1c66a38a7f414f2bc559bbae86605d4318722

parent

ffa051e58ce93755452e18655f74be200bceae0f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M main.gomain.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)