-
Notifications
You must be signed in to change notification settings - Fork 74
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
HTTP gem does not work with this gem #89
Comments
Well that's not good... :) Checking now |
Well, it works fine with ruby 2.6.5 for me. With this setup:
running |
Works the same for me with ruby 2.7.0. http gem version is 4.3.0 - which one do you have? And can you provide a minimum example that reproduces the issue? |
I am using |
I did stumble on that on one personal project (and hopefully, we weren't affected at work due to binary only responses). I was going to make a PR for that this morning. The culprit is the new added data = parse_body(body.dup, mask_body, encoding, content_type) With that, you have two instances of If the content type is "loggable", the instance in httplog is read and the instance you get is empty. If binary (hence not "loggable"), that's the response you get. A proper way is:
|
Thanks, @maximeg Curious when this fix will be released? |
When I enable this gem, the HTTP gem does not return any data. So basically the following request returns an empty response.
content = HTTP.get(URL).body.to_s
Versions I am using -
The text was updated successfully, but these errors were encountered: