Closed ClearlyClaire closed 3 years ago
git bisect
ing it points to 8f8682c9a052299eea6e2ea314b7dd652e3a32e3 introducing the issue
cc @bryanp
I'm able to reproduce—investigating.
Okay, I traced the issue all the way back to the llhttp
library that the llhttp
gem provides bindings to: https://github.com/nodejs/llhttp/issues/128
This is causing our handler to be in an incorrect state. I'll report back once I hear back from the llhttp
folks.
It looks to be an issue with the implementation in #651. We need to reset the parser rather than simply call finish
.
I'll be releasing an update to llhttp-ffi
today or tomorrow and will PR a corresponding change here.
Well, it all happened faster than I expected: https://github.com/httprb/http/pull/686. I'll let @tarcieri make the call on when to cut a release.
@ClearlyClaire I've merged a prospective fix in #686. Can you confirm it fixes your problem?
Yes, I can confirm this solves my issue!
Released in 5.0.2
Hi, We are using the
http
gem in Mastodon, and I've been reported failures when using a HTTP proxy.Upon investigation, it seems it occurs directly in the
http
gem and only fails with HTTPS URLs.Indeed, the following works:
But the following fails:
It fails with the following error:
This also fails with
http
5.0.0 but not with 4.4. Version 5.0.0pre3 seems to also work.