Skip to content

Commit

Permalink
Merge branch 'main' into kontonummer
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslysne committed Jan 17, 2025
2 parents 4efde31 + 0bd14fd commit af7b1a1
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.4</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 af7b1a1

Please sign in to comment.