Skip to content

Commit

Permalink
Merge pull request DSpace#9534 from 4Science/task/main/DURACOM-254
Browse files Browse the repository at this point in the history
Fix wrong MIME type when sending LDN Messages
  • Loading branch information
tdonohue authored May 3, 2024
2 parents 5b8f491 + 819f977 commit dc621d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public LDNActionStatus execute(Context context, Notification notification, Item
String url = notification.getTarget().getInbox();

HttpPost httpPost = new HttpPost(url);
httpPost.addHeader("Content-Type", "application, ld+json");
httpPost.addHeader("Content-Type", "application/ld+json");
ObjectMapper mapper = new ObjectMapper();
httpPost.setEntity(new StringEntity(mapper.writeValueAsString(notification), "UTF-8"));

Expand Down

0 comments on commit dc621d7

Please sign in to comment.