fixed for python version's HTTP parser