-
Notifications
You must be signed in to change notification settings - Fork 427
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
added UseLibHeaders option to allow disabling of lib headers #532
base: master
Are you sure you want to change the base?
Conversation
ddd8ea7
to
156958a
Compare
@yuchunc I can't speak for @benoitc and this is his project, I personally see a potential problem regarding multi-part-streams partially because I don't know what the code you are bypassing does, here are a list of things I see:
|
@@ -81,6 +84,13 @@ perform(Client0, {Method0, Path, Headers0, Body0}) -> | |||
handle_body(Headers2, ReqType0, Body0, Client0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the method you are bypassing when headers are disabled. Not sure what it does or what horrific things may happen to multipart streams if it isn't run. This you should definitely check 😈
@benoitc for some context, here is the original post and reasoning behind why this may be a requirement (despite my personal belief the person who wrote this third-party API should have their computer(s) revoked): https://elixirforum.com/t/options-for-httpoison-and-hackney-to-not-append-library-headers/16519/4 |
@hazardfn it would have been interesting which headers are triggering an error als. @yuchunc Patch looks good but I think I would prefer to have it named |
#529
I am not familiar with erlang, and I can't, for the life of me, seem to figure out how to get erlang test suite to run. I fiddle with the code under my
/deps
, and this is working for me.Please let me know if anything need to be updated.
Thank you!