Fix cookie creation bug
Fix cookie creation bug

This reverts part of commit 24f7ac2381de901e99a04f460d816f7d0a39d137.
I should have restricted myself to actually only do what it said in
the commit message.

CylonicRaider/websocket-server,CylonicRaider/websocket-server