small changes to the way httprequest handles the headers