Use proxy only if the scheme is http.

Proxies should not be used for accessing local files.