fixes situation where if using non-strict mode and a non proxy protocol
connection comes in everything blows up. This has probably been broken since
d3599dca91267b8e9ad6beba1f30134f7f9e3958