From 08526cf5e685a50bf621d665098296503427a8eb Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Fri, 16 Oct 2020 10:42:42 +0200 Subject: [PATCH] disabled validation for unsafe requests --- v2/pkg/requests/bulk-http-request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/requests/bulk-http-request.go b/v2/pkg/requests/bulk-http-request.go index e0fd2d92..a87537b3 100644 --- a/v2/pkg/requests/bulk-http-request.go +++ b/v2/pkg/requests/bulk-http-request.go @@ -391,7 +391,7 @@ func (r *BulkHTTPRequest) parseRawRequest(request, baseURL string) (*RawRequest, // Handle case with the full http url in path. In that case, // ignore any host header that we encounter and use the path as request URL - if strings.HasPrefix(parts[1], "http") { + if !r.Unsafe && strings.HasPrefix(parts[1], "http") { parsed, parseErr := url.Parse(parts[1]) if parseErr != nil { return nil, fmt.Errorf("could not parse request URL: %s", parseErr)