When creating New go client, trim trailing `/` in basePath
This fixes issues with ALBs, which don't treat `//` equivalently to `/`
@@ -71,6 +71,7 @@ var _ Client = (*WagClient)(nil)
// New creates a new client. The base path and http transport are configurable.
func New(basePath string) *WagClient {
+ basePath = strings.TrimSuffix(basePath, "/")
base := baseDoer{}
tracing := tracingDoer{d: base}
// For the short-term don't use the default retry policy since its 5 retries can 5X
