Fix bug where headers were being parsed before being received.
Feature: allow socket io requests to have headers, etc.