fix HttpRequest bug