I would rather to use nginx for redirecting from http to https.

On Wed, Sep 25, 2019, 6:37 AM 'Julia Ma' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> Hi all,
> I recently realized that request.URL.Scheme is not the correct field to
> check whether a request is https or not (thank you to this thread
> <https://groups.google.com/forum/#!searchin/golang-nuts/https$20redirect%7Csort:date/golang-nuts/pMUkBlQBDF0/hifgmKvCAAAJ>
> and other posts on the internet). Once I've determined that the request is
> http, what do I set the request.TLS to to ensure the redirect is https?
> Thanks,
> Julia
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/9a23f15a-e398-4f7d-9a1c-12990f41d136%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/9a23f15a-e398-4f7d-9a1c-12990f41d136%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Bp%2BMUedA2XeKGR8qXS9%3D3Mi53N05XnE9deakpQ%2BCsx9-4LQog%40mail.gmail.com.

Reply via email to