Skip to content

Commit

Permalink
Merge pull request #346 from robbieaverill/bugfix/response-status
Browse files Browse the repository at this point in the history
Fix bug where response status could be given to Response as a string, throwing type error
  • Loading branch information
shalvah authored Oct 23, 2021
2 parents e4d7e17 + 31ff159 commit c7117c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions camel/Extraction/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public function __construct(array $parameters = [])
$parameters['content'] = json_encode($parameters['content']);
}

if (isset($parameters['status'])) {
$parameters['status'] = (int) $parameters['status'];
}

$hiddenHeaders = [
'date',
'Date',
Expand Down

0 comments on commit c7117c3

Please sign in to comment.