Fix the proxy_type

Previously, the proxy_type was set incorrectly for the secure,
socks, and streaming proxies.  This commit fixes that.