Fix http parsing