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

Add net_http_connect_on_start example with explicit domain #1016

Merged
merged 1 commit into from Feb 20, 2024

Conversation

spikeheap
Copy link
Contributor

While debugging the net_http_connect_on_start gotcha with Capybara I found it's sometimes necessary to restrict the scope of net_http_connect_on_start to prevent network connections to external services while allowing (and fixing) connections to the local test server.

This PR pulls information from this comment into the readme and adds an example to show net_http_connect_on_start accepts domains as well as boolean values, which resolved the issue for me.

In order to workaround the `net_http_connect_on_start` gotcha while working with Capybara it's sometimes necessary to restrict the scope of `net_http_connect_on_start`.

This adds information from [this comment](bblimke#914 (comment)) to the readme to make debugging that issue easier, and adds an example to show `net_http_connect_on_start` accepts domains as well as boolean values.
@severinkaelin
Copy link

@spikeheap I have just encountered this situation and I think your addition to the README makes a lot of sense. I'm sure this will save others time as well. Thanks for your blog post on the topic: https://ryanbrooks.co.uk/posts/2023-01-17-capybara-webmock-allow-http.html

@bblimke @myronmarston Is there a chance you can review and merge this within the next days/weeks? Thanks a lot.

@silvermind FYI

@spikeheap spikeheap closed this Apr 17, 2023
@spikeheap
Copy link
Contributor Author

There doesn't seem to be appetite for this PR, so closing to clean up my PR list. No worries 🙇

@bblimke bblimke reopened this Feb 20, 2024
@bblimke bblimke merged commit 9a27df8 into bblimke:master Feb 20, 2024
8 checks passed
@bblimke
Copy link
Owner

bblimke commented Feb 20, 2024

@spikeheap really sorry for not getting to your PR sooner. Thank you for the PR. That's super useful. Also really appreciated your blog post. Thanks for all the effort you put in.

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