Skip to content

Commit

Permalink
Fixing content type
Browse files Browse the repository at this point in the history
  • Loading branch information
phochste committed Apr 21, 2023
1 parent 34bb2b0 commit 913db78
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-04-21 0.2.6
- Fixing contentType bug in sendNotification

2023-04-19 0.2.5
- Fixing dist output
- Adding npm batch
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koreografeye",
"description": "A minimal orchestrator and policy executor component for the Mellon Researcher Pod project",
"version": "0.2.5",
"version": "0.2.6",
"homepage": "",
"license": "MIT",
"author": "Patrick Hochstenbach <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/orch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const POL_MAIN_SUBJECT = 'https://www.example.org/ns/policy#mainSubject';
const POL_ORIGIN = 'https://www.example.org/ns/policy#origin';
let orchConf = './config.jsonld';

program.version('0.2.5')
program.version('0.2.6')
.argument('<rules>')
.option('-c,--config <file>','config file')
.option('-i,--in <directory>','input directory')
Expand Down
2 changes: 1 addition & 1 deletion src/pol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const POL_MAIN_SUBJECT = 'https://www.example.org/ns/policy#mainSubject';
const POL_ORIGIN = 'https://www.example.org/ns/policy#origin';
let pluginConf = './config.jsonld';

program.version('0.2.5')
program.version('0.2.6')
.option('-c,--config <file>', 'configuration file')
.option('-i,--in <directory>','input directory')
.option('-e,--err <directory>','error directory')
Expand Down
5 changes: 4 additions & 1 deletion src/policy/plugin/SendNotificationPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class SendNotificationPlugin extends PolicyPlugin {

const result = await fetch(to.value, {
method: 'POST',
body: JSON.stringify(json)
body: JSON.stringify(json) ,
headers: {
"Content-type" : "application/ld+json; charset=UTF-8"
}
});

if (result.ok) {
Expand Down

0 comments on commit 913db78

Please sign in to comment.