Skip to content

Commit

Permalink
Specify "Accept: application/json" for PUT on a step
Browse files Browse the repository at this point in the history
Editing now works
  • Loading branch information
MikeTaylor committed Jul 14, 2023
1 parent 74d14a5 commit 3609595
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/settings/StepSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ StepSettings.manifest = Object.freeze({
GET: {
path: 'harvester-admin/steps?limit=1000', // XXX will this always be enough?
},
PUT: {
headers: {
// For some reason, this is needed for PUT and not POST
// And also for some reason, it's needed to PUT steps, but not storages or pipelines
'Accept': 'application/json'
}
}
},
});

Expand Down

0 comments on commit 3609595

Please sign in to comment.