Look at URL scheme instead of TLS connection state
Look at URL scheme instead of TLS connection state

TLS will always be nil in the way I use this middleware, see:

https://golang.org/pkg/net/http/#Request

jadengore/go-json-rest-middleware-force-ssl