Coverage increased (+0.3%) to 93.692% when pulling 955e0cc19bde93a1aa8c0ac7267465cb9a9b6413 on seomoz:myron/fix-hackney-with-body into b849240eff48484b124c3e99783d1d091259bb65 on parroty:master.
Coverage increased (+0.3%) to 93.735% when pulling ab692f58c024b4dc4d84724d5c929b6917953987 on seomoz:myron/fix-hackney-with-body into b849240eff48484b124c3e99783d1d091259bb65 on parroty:master.
There were a couple issues:
sanitize_options
assumed that every value inoptions
is a tuple, but hackney supports some boolean options being specified just as atoms:https://github.com/benoitc/hackney/blob/1.6.3/src/hackney.erl#L1016-L1019
:with_body
is provided, the return value from:hackney.request/5
has the body as the last element in the tuple instead of the client.These two issues affect both recording and replaying of cassettes, so I added tests for both sides of it.