Skip to content

Commit

Permalink
[Http] Fixing issue related to nested POST data. Resolves #20
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Feb 14, 2012
1 parent fcbb9b0 commit 93f33ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Message/EntityEnclosingRequest.php
Expand Up @@ -127,7 +127,7 @@ public function getPostFields()
public function getPostFiles()
{
return $this->postFields->filter(function($key, $value) {
return $value && $value[0] == '@';
return $value && is_string($value) && $value[0] == '@';
})->map(function($key, $value) {
return str_replace('@', '', $value);
})->getAll();
Expand Down

0 comments on commit 93f33ea

Please sign in to comment.