Fix #1051 Parse auth properly when using non-tunneling proxy