Fixed ignored input path
Only the template port  takes preference over the input URL, not paths.
@@ -24,7 +24,6 @@ const (
)
var urlWithPortRgx = regexp.MustCompile(`{{BaseURL}}:(\d+)`)
-var urlWithPathRgx = regexp.MustCompile(`{{BaseURL}}.*/`)
// BulkHTTPRequest contains a request to be made from a template
type BulkHTTPRequest struct {
@@ -296,12 +295,6 @@ func baseURLWithTemplatePrefs(data string, parsedURL *url.URL) string {
parsedURL.Host = hostname
}
- // template path preference over input URL path
- hasPath := len(urlWithPathRgx.FindStringSubmatch(data)) > 0
- if hasPath {
- parsedURL.Path = ""
- }
-
return parsedURL.String()
}
