fixes warnigns when using HttpRequest

fixes warnigns when using HttpRequest