exvcr icon indicating copy to clipboard operation
exvcr copied to clipboard

Allow ExVCR.Config.filter_request_headers to receive a list of headers

Open rafaels88 opened this issue 7 years ago • 1 comments

Currently, it is not possible to do something like, ExVCR.Config.filter_request_headers(["header_one", "header_two"]).

This PR makes this possible.

Since ExVCR.Config.filter_request_headers is a plural term (headers) and it is possible to give a list of values when defining this config on config.exs as filter_request_headers: [], it seems that it is really non-intuitive the fact of giving a list of values to the function, it does not work (also no errors happen).

rafaels88 avatar Mar 02 '18 12:03 rafaels88

Coverage Status

Coverage increased (+0.01%) to 93.697% when pulling 77825ff6304d4ad45c2a93a56524f11c22791bfc on rafaels88:allow-filter_request_headers-get-a-list into fdf598819449aacb123ee1025de29e70908a27b0 on parroty:master.

coveralls avatar Mar 02 '18 12:03 coveralls