Skip to content

Commit 2d1452b

Browse files
committed
Fix DgsWebMvcGraphQLInterceptor
1 parent bd00de6 commit 2d1452b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/webmvc/DgsWebMvcGraphQLInterceptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DgsWebMvcGraphQLInterceptor(
4242
chain: WebGraphQlInterceptor.Chain,
4343
): Mono<WebGraphQlResponse> {
4444
// We need to pass in the original server request for the dgs context
45-
val servletRequestAttributes = RequestContextHolder.currentRequestAttributes() as? ServletRequestAttributes
45+
val servletRequestAttributes = RequestContextHolder.getRequestAttributes() as? ServletRequestAttributes
4646

4747
val dgsContext =
4848
if (servletRequestAttributes != null) {

0 commit comments

Comments
 (0)