fixes parsing http requests