Fix HTTP protocol parser