Closed egze closed 4 years ago
Hi there! Sorry for the delayed reply. Your idea is a good one and I would happily accept a PR.
@gamache Now that I think about it, maybe it's better to fix it in Mint? Somewhere here: https://github.com/elixir-mint/mint/blob/master/lib/mint/http1.ex#L237
What do you think?
Let's see what Mint folks say. https://github.com/elixir-mint/mint/issues/235
Ok, let's fix it in Mojito :)
Fixed in 0.6.2.
I'm using mojito as a Http client for ExAws.
When trying to download a file, I'm getting:
This is happening because of this part
{"content-length", 0}
, if I preprocess the headers and convert the values to strings, then it works.Should mojito be more permissive, and auto-convert the values? Will gladly do a PR.