reverse test
This commit is contained in:
@@ -212,7 +212,7 @@ func (c *Client) do(ctx context.Context, method, relativeURL string, reqBody int
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to parse URL: %s %s %w", method, relativeURL, err)
|
return fmt.Errorf("unable to parse URL: %s %s %w", method, relativeURL, err)
|
||||||
}
|
}
|
||||||
if !strings.Contains(relativeURL, "firewall/zone") {
|
if strings.Contains(relativeURL, "firewall/zone") {
|
||||||
c.apiPath = c.apiV2Path
|
c.apiPath = c.apiV2Path
|
||||||
}
|
}
|
||||||
if !strings.HasPrefix(relativeURL, "/") && !reqURL.IsAbs() {
|
if !strings.HasPrefix(relativeURL, "/") && !reqURL.IsAbs() {
|
||||||
|
|||||||
Reference in New Issue
Block a user