Skip to content

Commit

Permalink
Set correct Content-Type in Virtuoso PUT request
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Sep 4, 2023
1 parent 465925b commit 0b40a3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whelk-core/src/main/groovy/whelk/component/Virtuoso.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Virtuoso {
return new HttpDelete(graphCrudURI)
} else if (method == PUT) {
HttpPut request = new HttpPut(graphCrudURI)
request.addHeader("Content-Type", "text/turtle")
String turtleDoc = convertToTurtle(doc)
request.setEntity(new StringEntity(turtleDoc, StandardCharsets.UTF_8))
return request
Expand Down

0 comments on commit 0b40a3b

Please sign in to comment.