From 0ec05a18881e1830af86fa5624ae5f6945223068 Mon Sep 17 00:00:00 2001 From: Remco Date: Fri, 14 Nov 2014 23:30:09 +0100 Subject: [PATCH] removed enforcing of https for .onion --- transfersh-server/handlers.go | 5 ----- transfersh-server/static/index.html | 2 +- transfersh-web/index.html | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/transfersh-server/handlers.go b/transfersh-server/handlers.go index 1e19c47..f8dd8d7 100644 --- a/transfersh-server/handlers.go +++ b/transfersh-server/handlers.go @@ -584,11 +584,6 @@ func RedirectHandler(h http.Handler) http.HandlerFunc { } else if ipAddrFromRemoteAddr(r.Host) == "127.0.0.1" { } else if ipAddrFromRemoteAddr(r.Host) == "transfersh.elasticbeanstalk.com" { } else if ipAddrFromRemoteAddr(r.Host) == "jxm5d6emw5rknovg.onion" { - if r.Header.Get("X-Forwarded-Proto") != "https" && r.Method == "GET" { - - http.Redirect(w, r, "https://jxm5d6emw5rknovg.onion"+r.RequestURI, 301) - return - } } else if ipAddrFromRemoteAddr(r.Host) == "transfer.sh" { if r.Header.Get("X-Forwarded-Proto") != "https" && r.Method == "GET" { http.Redirect(w, r, "https://transfer.sh"+r.RequestURI, 301) diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index 71dc040..9e9d5f4 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -385,7 +385,7 @@
diff --git a/transfersh-web/index.html b/transfersh-web/index.html index 2b29ee0..3e20909 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -359,7 +359,7 @@ include "includes/head.html"