http: Simplify code by removing a local variable