http: Fix a compiler warning when http2 support is disabled