mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-22 21:27:54 +08:00
Correct JSON format for @response
This commit is contained in:
@@ -67,7 +67,7 @@ abstract class AbstractGenerator
|
||||
}
|
||||
$responseTag = \array_first($responseTags);
|
||||
|
||||
return \response(\json_encode($responseTag->getContent()));
|
||||
return \response($responseTag->getContent(), 200, ['content-type' => 'application/json']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user