Skip to content
Browse files

[Http] Fixing issue related to nested POST data. Resolves #20

  • Loading branch information...
1 parent fcbb9b0 commit 93f33ea26e4430f92c485552a271d5f7b9b5b1dd @mtdowling mtdowling committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Message/EntityEnclosingRequest.php
View
2 Message/EntityEnclosingRequest.php
@@ -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();

0 comments on commit 93f33ea

Please sign in to comment.
Something went wrong with that request. Please try again.