Add ansible Galaxy remote type
- add ansible package type proxying the Galaxy v3 API - rewrite href/links/download_url back to the remote so tarballs flow through it - forward the query string for providers that opt in, keeping Galaxy pagination working - add a UI usage snippet and an ansible e2e caching case
This commit is contained in:
@@ -92,6 +92,10 @@ func (h *ProxyHandler) handleProxy(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
if _, ok := prov.(provider.QueryForwarder); ok && r.URL.RawQuery != "" {
|
||||
path += "?" + r.URL.RawQuery
|
||||
}
|
||||
|
||||
result, err := h.engine.Fetch(r.Context(), *remote, path, prov, r.Header)
|
||||
if err != nil {
|
||||
var proxyErr *proxy.ProxyError
|
||||
|
||||
Reference in New Issue
Block a user