Skip to content

Commit cee273b

Browse files
authored
Merge pull request #331 from 0xxb/master
Fixed #330
2 parents 2b42238 + c9b8805 commit cee273b

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
@@ -318,7 +318,7 @@ public function create(string $config = 'default', bool $api = false)
318318
return $api ? [
319319
'sensitive' => $generator['sensitive'],
320320
'key' => $generator['key'],
321-
'img' => $this->image->toJpg()
321+
'img' => $this->image->toJpg()->toDataUri()
322322
] : new Response($this->image->toJpg(), 200, [
323323
'Content-Type' => 'image/jpeg',
324324
'Content-Disposition' => 'inline; filename="image.jpg"',

0 commit comments

Comments
 (0)