From 1296f5623e66bd8e70c897d45ce5bf4775fde92e Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 27 Aug 2025 22:14:37 +0200 Subject: [PATCH] Support proxying to http servers --- internal/record/recording_https_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/record/recording_https_proxy.go b/internal/record/recording_https_proxy.go index 22a6541..ded748a 100644 --- a/internal/record/recording_https_proxy.go +++ b/internal/record/recording_https_proxy.go @@ -135,7 +135,7 @@ func (r *RecordingHTTPSProxy) redactRequest(req *http.Request) (*store.RecordedR } func (r *RecordingHTTPSProxy) proxyRequest(w http.ResponseWriter, req *http.Request) (*http.Response, []byte, error) { - url := fmt.Sprintf("https://%s:%d%s", r.config.TargetHost, r.config.TargetPort, req.URL.Path) + url := fmt.Sprintf("%s://%s:%d%s", r.config.TargetType, r.config.TargetHost, r.config.TargetPort, req.URL.Path) if req.URL.RawQuery != "" { url += "?" + req.URL.RawQuery }