TUN-5737: Support https protocol over unix socket origin

This commit is contained in:
Devin Carr
2022-02-28 14:07:47 -06:00
parent a1d485eca5
commit c2a32de35f
4 changed files with 22 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ type StreamBasedOriginProxy interface {
}
func (o *unixSocketPath) RoundTrip(req *http.Request) (*http.Response, error) {
req.URL.Scheme = "http"
req.URL.Scheme = o.scheme
return o.transport.RoundTrip(req)
}