-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add support for chunked downloads #30
Add support for chunked downloads #30
Conversation
bb2fca0
to
9577133
Compare
Thanks @mrhaddad - I will take a look at this PR this week |
9a75850
to
11a1bdb
Compare
@mrhaddad sorry on the delay here, it was partly holidays and partly a rabbit hole of getting tests to pass due to Webmock not supporting chunked responses. I made a few updates here:
With the new changes the more recent versions of ruby pass but ruby-2.4 and lower fail, I'm not sure why yet |
4966d7a
to
acd9ac5
Compare
Thanks @arkadiyt. Changes look good. I had to amend to unset the forced hostname when calling the chunked response block as this block may make Net::HTTP calls as well. I also added changes to read the response body before returning to maintain parity with existing version. Haven't had a chance to look into the test failures on earlier versions of Ruby yet. Let me know what you think when you get a chance! |
👋 checking in on this one. I confess I also do not know what's going on with the test failures on the older versions of Ruby. I tried to reproduce it locally but could not. |
👋🏻 hey there. I see this one was closed. Does that mean the feature won't be supported? |
@maxjacobson @mrhaddad sorry on the long delay here - I've merged this on #51 and will release 1.1.0 shortly @mrhaddad thanks very much for writing this clean, well-tested code |
@arkadiyt Amazing! We'll take a look. Much appreciated |
Not an expert in SSRF attacks and not sure if this something you want
ssrf_filter
to support, but we need a secure way to read chunked responses. How does this look to you?