Some fixes related to tunneling over HTTP.