fixes warnigns when using HttpRequest

fixes warnigns when using HttpRequest
Merge pull request #3286 from ricardoquesada/http_warnings

fixes warnigns when using HttpRequest