I am writing a simple proxy that uses a random iPv6 from all available ones and it works fine with HTTP URLs, however if I try to request a https one, scheme becomes empty.
https://gist.github.com/Diniboy1123/fb934efc37ed9863d1d606d49f2cd53d#file-proxy-go-L108
In the highlighted line r.Host seems to be fine, but r.URL.Path and r.URL.Scheme is just empty. Even though I set something using curl -x "http://127.0.0.1:1337" https://cloudflare.com/cdn-cgi/trace.