Skip to content

Commit 7f69787

Browse files
committed
Updated package install request content type (#106)
1 parent 1de1c61 commit 7f69787

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/packages.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,12 @@ export default class Packages {
354354
return this.core
355355
.request('/api/packages/install', {
356356
method: 'post',
357-
body
358-
});
357+
headers: {
358+
'content-type': 'application/json'
359+
},
360+
body: JSON.stringify(body)
361+
})
362+
.then(response => response.json());
359363
}
360364

361365
/**

0 commit comments

Comments
 (0)