remove unused sameHost function

This commit is contained in:
Saj Goonatilleke 2020-11-06 08:51:26 +11:00
parent cc8906ee36
commit 6d8aa28a19
1 changed files with 0 additions and 7 deletions

View File

@ -251,13 +251,6 @@ func getReturnUrl(secret string, payload string, sig string, nonce string) (retu
return returnUrl, err
}
func sameHost(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
r.Host = r.URL.Host
handler.ServeHTTP(w, r)
})
}
func signCookie(data, secret string) string {
return data + "," + computeHMAC(data, secret)
}