IsHttps is a helper function that evaluates the http.Request and returns True if the Request uses HTTPS. It is able to detect, using the X-Forwarded-Proto, if the original request was HTTPS and routed through a reverse proxy with SSL termination.
Domain: r.URL.Host, HttpOnly: true, Secure: IsHttps(r), MaxAge: 2147483647, // the cooke value (token) is responsible for expiration }
IsHttps is referenced in 1 repositorygithub.com/drone/drone
- 1 reference in shared/httputil/httputil.go