Skip to content

Commit

Permalink
Add support to a envvar that supports to disable validation (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior authored Sep 13, 2024
1 parent 1490b33 commit eab456b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/rpaas/client/internal_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ func (c *client) newRequestWithQueryString(method, pathName string, body io.Read

c.baseAuthHeader(request.Header)

rpaasDisableValidation := os.Getenv("RPAAS_DISABLE_VALIDATION")
if rpaasDisableValidation != "" {
request.Header.Set("X-Rpaas-Disable-Validation", rpaasDisableValidation)
}

return request, nil
}

Expand Down

0 comments on commit eab456b

Please sign in to comment.