Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: strip trailing slash from "BasePath"
The generated Swagger http clients require a URL to which an method's endpoint path is appended. This is a problem if this base path has a trailing slash since the endpoint paths begin with a slash. The result is that kwild's server will report 404 not found, while kgw would try to clean the path but redirect with GET even for POST. This change fixes our http client constructors to trim trailing slashes from the base URL.
- Loading branch information