Skip to content

Commit 1c3cac1

Browse files
danielvaughandaniellockyer
authored andcommitted
Changed the default body for a GET request to be "" instead of {}.
refs: #394
1 parent 33684b9 commit 1c3cac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/admin-api/lib/admin-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ module.exports = function GhostAdminAPI(options) {
381381
});
382382
}
383383

384-
function makeResourceRequest(resourceType, queryParams = {}, body = {}, method = 'GET', urlParams = {}) {
384+
function makeResourceRequest(resourceType, queryParams = {}, body = "", method = 'GET', urlParams = {}) {
385385
return makeApiRequest({
386386
endpoint: endpointFor(resourceType, urlParams),
387387
method,

0 commit comments

Comments
 (0)