fixed KeyError on websites who don't pass content-length