hootsuite / healthchecks

A go implementation of the Health Checks API used for microservice exploration, documentation and monitoring.
Other
132 stars 10 forks source link

Trim BaseUrl to deal with trailing / #7

Closed HootAdam closed 5 years ago

HootAdam commented 5 years ago

Configuring a status check with a BaseUrl like http://something.com/ will cause the status checker to build URLs like http://something.com//status/aggregate and http://something.com//status/traverse. This PR fixes this by trimming the BaseUrl before usage.