Fixed bug in HttpRequest