fix Socket.request for upgraded sockets

Fixes GH-200