mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(proxy): remove code duplication BE-11627 (#644)
This commit is contained in:
parent
2c37f32fa6
commit
730c1115ce
6 changed files with 9 additions and 10 deletions
|
@ -13,7 +13,7 @@ func newGitlabProxy(uri string) (http.Handler, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
proxy := newSingleHostReverseProxyWithHostHeader(url)
|
||||
proxy := NewSingleHostReverseProxyWithHostHeader(url)
|
||||
proxy.Transport = gitlab.NewTransport()
|
||||
return proxy, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue