fixed an issue regarding headers in firefox for websockets (hack)

Trying out the new Websockets code on Firefox I found the following error. I have only put a hack in to fix it temporarily.