Skip to content

Commit

Permalink
Updated package install request content type (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Apr 10, 2020
1 parent 2ba5410 commit f574649
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,12 @@ export default class Packages {
return this.core
.request('/api/packages/install', {
method: 'post',
body
});
headers: {
'content-type': 'application/json'
},
body: JSON.stringify(body)
})
.then(response => response.json());
}

/**
Expand Down

0 comments on commit f574649

Please sign in to comment.