pi_http: fix html output
(cherry picked from commit a1f454bcc6e9eb45249eafe1f49726121b792a67)