Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix socket example not working #589

Closed
sounddroid opened this issue Oct 13, 2022 · 4 comments · Fixed by #703
Closed

Unix socket example not working #589

sounddroid opened this issue Oct 13, 2022 · 4 comments · Fixed by #703
Assignees
Milestone

Comments

@sounddroid
Copy link

Hi there! I followed the unix socket example in the README and referenced in #80 but I am getting the following error:

http: no Host in request URL

Any ideas on a workaround?

@raharper
Copy link

Interested in this as well. Seeing this with go 1.18

@raharper
Copy link

You can use a throwaway hostname it seems:

// Supply transport type (http) and fake hostname along with the path you want
client.R().Get("http://fakehost/index.html")

@sounddroid
Copy link
Author

Oh wow. Didn't even think to check that workaround. Does it actually work?

@jeevatkm
Copy link
Member

@sounddroid I believe it suppose to be http://localhost/, will update the readme and also added a sample test too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants