Commit 502d9d2
committed
Intercept Ruby HTTP even when net/http isn't imported
In some cases, just net/https may be imported. This works
if net/http is imported too, but if not then interception
relies entirely on the SSL_CERT_FILE variable. Unfortunately,
in some environments (notably including Mac's default Ruby)
that variable is ignored. With this change, we ensure that
even if just net/https is required, our HTTP hook is always
enabled.1 parent 315be21 commit 502d9d2
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments