Skip to content

Commit

Permalink
Merge pull request #309 from mohaphez/bugfix/api-response
Browse files Browse the repository at this point in the history
  • Loading branch information
mewebstudio authored Sep 10, 2024
2 parents e009e1e + bb625f3 commit 06a28c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function create(string $config = 'default', bool $api = false)
return $api ? [
'sensitive' => $generator['sensitive'],
'key' => $generator['key'],
'img' => $this->image->encode()->encoded
'img' => $this->image->encode()->toDataUri()
] : new Response($this->image->encode(), 200, [
'Content-Type' => 'image/jpeg',
'Content-Disposition' => 'inline; filename="image.jpg"',
Expand Down

0 comments on commit 06a28c6

Please sign in to comment.