Skip to content

Commit a2b2a94

Browse files
committed
fix: content type
1 parent 6664e5b commit a2b2a94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/mocks/storybook/decorator.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export const withMocks = makeDecorator({
4545
? {
4646
...editedMock,
4747
handler: () =>
48-
new Response(JSON.stringify(editedMock.data), { status: editedMock.status }),
48+
new Response(JSON.stringify(editedMock.data), {
49+
headers: {
50+
'Content-Type': 'application/json',
51+
},
52+
status: editedMock.status,
53+
}),
4954
}
5055
: mock;
5156
});

0 commit comments

Comments
 (0)