Athlon1600 / php-proxy

A web proxy script written in PHP and built as an alternative to Glype.
https://www.php-proxy.com
MIT License
298 stars 158 forks source link

Array fields are not supported when sending a file #31

Open ghost opened 8 years ago

ghost commented 8 years ago

When posting a file and an additional field that holds an array, the Request::buildPostBody() function will fail as line 244 will fail.

$body .= "{$value}\r\n";

This leads to an error.

<b>Notice</b>:  Array to string conversion in <b>/var/www/project/vendor/athlon1600/php-proxy/src/Http/Request.php</b> on line <b>245</b><br />

I can provide a pull request, if that helps.