Skip to content

Commit

Permalink
Merge pull request #396 from navikt/bump_spring_to_336
Browse files Browse the repository at this point in the history
bump spring 3.4.1
  • Loading branch information
kenglxn authored Jan 8, 2025
2 parents 4428693 + 67b0d57 commit 0bd14fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.5</version>
<version>3.4.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ class AppConfig {

fun callIdIntercetor(headerName: String = CALL_ID) =
ClientHttpRequestInterceptor { request: HttpRequest, body: ByteArray?, execution: ClientHttpRequestExecution ->
request.headers.addIfAbsent(headerName, MDC.get(CALL_ID))
MDC.get(CALL_ID)?.let {
request.headers.addIfAbsent(headerName, it)
}
execution.execute(request, body!!)
}

Expand Down

0 comments on commit 0bd14fd

Please sign in to comment.