go-fed / activity

ActivityStreams & ActivityPub in golang, oh my!
BSD 3-Clause "New" or "Revised" License
702 stars 111 forks source link

ensure host header is set #147

Closed BenLubar closed 3 years ago

BenLubar commented 3 years ago

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 commented 3 years ago

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

cjslep commented 3 years ago

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.