mirror of
https://github.com/docker/docs.git
synced 2026-04-05 10:48:55 +07:00
Returning and handling error from HTTPClientAndScheme
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
This commit is contained in:
@@ -93,7 +93,11 @@ func proxyAsync(engine *cluster.Engine, w http.ResponseWriter, r *http.Request,
|
||||
// RequestURI may not be sent to client
|
||||
r.RequestURI = ""
|
||||
|
||||
client, scheme := engine.HTTPClientAndScheme()
|
||||
client, scheme, err := engine.HTTPClientAndScheme()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
r.URL.Scheme = scheme
|
||||
r.URL.Host = engine.Addr
|
||||
|
||||
Reference in New Issue
Block a user