Skip to content

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

Open
rafaels88 wants to merge 1 commit into
parroty:masterfrom
rafaels88:allow-filter_request_headers-get-a-list
Open

Allow ExVCR.Config.filter_request_headers to receive a list of headers#131
rafaels88 wants to merge 1 commit into
parroty:masterfrom
rafaels88:allow-filter_request_headers-get-a-list

Conversation

@rafaels88

@rafaels88 rafaels88 commented Mar 2, 2018

Copy link
Copy Markdown

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).

@coveralls

coveralls commented Mar 2, 2018

Copy link
Copy Markdown

Coverage Status

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants