Adds minor HTTP fixes to make request module usable.