http: remove unused code block

fix #7769

Signed-off-by: Fedor Indutny <fedor@indutny.com>