Fixed Array to string conversion bug in http module.

Bug reported by PHPDeividas on the PRISM forums.