coder / hat

HTTP API testing for Go
MIT License
37 stars 3 forks source link

preserve the trailing slash if one exists in RunPath()'s elem #17

Closed coadler closed 6 years ago

coadler commented 6 years ago

Since path.Join strips the trailing slash from URLs some routes in wapi return 307, redirecting to the same route with a trailing slash.

This preserves the trailing slash if one exists in the elem.

There's probably a more permanent solution to this. Thoughts?