Fix for WebSocket proxying support

I've only tested this with Chrome 26 which uses the latest hybi spec and node v0.87. It seems to work for me.

This isn't tested enough to be taken and I don't have the time to do that testing but I'm posting this in case it helps someone else.