Skip to content

Commit 609aa02

Browse files
authored
docs: update README example from text/json to application/json (#13)
1 parent 916ca63 commit 609aa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const creature = { name: 'Cerberus', type: 'Underworld' }
181181
invariantResponse(
182182
creature.type === 'Sky',
183183
JSON.stringify({ error: 'Creature must be of type Sky' }),
184-
{ status: 500, headers: { 'Content-Type': 'text/json' } },
184+
{ status: 500, headers: { 'Content-Type': 'application/json' } },
185185
)
186186
```
187187

0 commit comments

Comments
 (0)