client-go
client-go copied to clipboard
fix: correctly perform requests for dt deployed on subpaths, #51
Previously if the dependency-track baseURL was under a subpath, client-go would ignore that subpath and therefore perform requests to nonexisting urls.
The reason for the defect is the behavior of URL.Parse, which uses URL.ResolveReference. From the docs:
If ref is an absolute URL, then ResolveReference ignores base and returns a copy of ref.
Therefore if the leading slash is omitted both instances on the root of a domain aswell as Dependency Track deployed on a subpath will be supported.
:white_check_mark: Snyk checks have passed. No issues have been found so far.
| Status | Scanner | Total (0) | ||||
|---|---|---|---|---|---|---|
| :white_check_mark: | Open Source Security | 0 | 0 | 0 | 0 | 0 issues |
:computer: Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.