Skip to content
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

Fix errors when using request headers with ignore_localhost enabled #140

Merged
merged 2 commits into from
Sep 24, 2018

Conversation

ciaran
Copy link
Contributor

@ciaran ciaran commented Sep 5, 2018

This PR adds a failing test demonstrating the current issue, and a fix for it.

…on when headers are set

The ignore_localhost check tries to convert each request property to a string to check for localhost,
which causes an error if there is a header keyword list specified.

Note this error is not reproducible for localhost URLs as the URL is always the first field,
thus passing the Enum.any? check before trying to test the header list.
Fixes failing test from previous commit
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 93.827% when pulling a7a1471 on ciaran:master into 1882243 on parroty:master.

@parroty parroty merged commit 195f440 into parroty:master Sep 24, 2018
@parroty
Copy link
Owner

parroty commented Sep 24, 2018

Thanks!

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.

None yet

3 participants