pi_http: fix compiler warning

(cherry picked from commit 965baa20f0244161fa21d35f9a94526d7edffe02)