Fixed problems when running bindings against non-https server

r? @michelle