http2: fix switched macro when http2 is not enabled