Golang, Heroku - How to check if request is https

The documentation suggests that you can check for TLS on the request object, but that looks like nil (at least heroically).

+3


source to share


1 answer


Looking at Heroku documentation it looks like HTTPS terminates above your application.



Check request Headers

for header X-Forwarded-Proto

with value https

.

+6


source







All Articles