lox / httpcache

An RFC7234 compliant golang http.Handler for caching HTTP responses
MIT License
264 stars 28 forks source link

http: proxy error: unsupported protocol scheme "" #8

Closed ghosttie closed 9 years ago

ghosttie commented 9 years ago

I have my proxy settings to only use httpcache for HTTP (not HTTPS) but I get this error when things like Dropbox try to use HTTPS:

2014/11/14 11:26:11 http: proxy error: unsupported protocol scheme ""
2014/11/14 11:26:11 127.0.0.1 "CONNECT //client-lb.dropbox.com:443 HTTP/1.1" (Internal Server Error) 0 ←[33;1mSKIP←[0m 0

I suspect it's because it's using // instead of specifying a scheme? Is this something httpcache should be able to handle?

lox commented 9 years ago

Interesting, what's seems to be happening is that your HTTP proxy is still being used for HTTPS requests, but over HTTP. What operating system are you using and how have you configured the proxies?

ghosttie commented 9 years ago

Windows 8, I have it set to only use the proxy for HTTP and not for local addresses

lox commented 9 years ago

Closing, as I can't reproduce.