Fixed #20619 -- Refactored HttpRequest and WSGIRequest.