Skip to content

Commit

Permalink
må akseptere json
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Dec 15, 2023
1 parent 110ea3e commit ad357ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/main/kotlin/no/nav/spanner/SpurteDuClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SpurteDuClient(
val request = HttpRequest.newBuilder()
.uri(URI("http://spurtedu/skjul_meg"))
.timeout(Duration.ofSeconds(10))
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(jsonInputString))
.build()
Expand Down

0 comments on commit ad357ec

Please sign in to comment.