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

ensure host header is set #147

Merged
merged 1 commit into from
Apr 26, 2021
Merged

ensure host header is set #147

merged 1 commit into from
Apr 26, 2021

Conversation

BenLubar
Copy link
Contributor

@BenLubar BenLubar commented Apr 7, 2021

Mastodon refuses to accept signatures without the host header, and due to how httpsig works, we need to explicitly set the host header before we sign the request.

@BenLubar
Copy link
Contributor Author

BenLubar commented Apr 7, 2021

This could also be accomplished by special-casing the Host header in httpsig.

@cjslep cjslep merged commit e0de086 into go-fed:master Apr 26, 2021
@cjslep
Copy link
Member

cjslep commented Apr 26, 2021

I like your approach. Also, thank you for debugging this. I believe I had encountered this but was not in a place to debug at the time. Gladly will merge. Also feel free to put in a reasonable request to the collective if you'd like to be compensated for your time.

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

Successfully merging this pull request may close these issues.

2 participants