coder / hat

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

parse address in hat.New() instead of always prepending http to the URL #16

Closed coadler closed 6 years ago

coadler commented 6 years ago

This causes issues if the httptest client returns a URL already containing http://.

If we need to guarantee that http:// is there we would just add a check after the URL is parsed.