Skip to content

Commit 06a28c6

Browse files
authored
Merge pull request #309 from mohaphez/bugfix/api-response
2 parents e009e1e + bb625f3 commit 06a28c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Captcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function create(string $config = 'default', bool $api = false)
308308
return $api ? [
309309
'sensitive' => $generator['sensitive'],
310310
'key' => $generator['key'],
311-
'img' => $this->image->encode()->encoded
311+
'img' => $this->image->encode()->toDataUri()
312312
] : new Response($this->image->encode(), 200, [
313313
'Content-Type' => 'image/jpeg',
314314
'Content-Disposition' => 'inline; filename="image.jpg"',

0 commit comments

Comments
 (0)