fix headers parsing in http router