salopensource / sal-scripts

Apache License 2.0
23 stars 31 forks source link

Remove trailing forward slash if present #68

Closed jbaker10 closed 4 years ago

jbaker10 commented 4 years ago

We had our ServerURL set to https://sal.server.com/ which broke the report_broken_client binary as it was attempting to send a POST to https://sal.server.com//report_broken_client resulting in a 404. This will strip a trailing forward slash if present.

I tested with both a server URL with and without the trailing slash and the client checked in correctly.