This makes the tests succeed when using --disable-proxy. Closes https://github.com/curl/curl/pull/4488
Added test 1904 to verify. Reported-by: Lawrence Wagerfield Fixes #1859 Closes #1860