Changed http parsing to fix ssl server