disabled validation for unsafe requests

dev
Mzack9999 2020-10-16 10:42:42 +02:00
parent 85aafa6763
commit 08526cf5e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)