Skip to content

Commit b8cef53

Browse files
committed
Code style.
1 parent 9020d71 commit b8cef53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

samples/spring-boot-webmvc/src/test/kotlin/sample/spring/boot/webmvc/SpringBootWebMvcSampleApplicationTests.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ class SpringBootWebMvcSampleApplicationTests : FreeSpec() {
9696
}
9797
"""
9898

99-
val headers = HttpHeaders()
100-
headers.contentType = MediaType.APPLICATION_JSON
99+
val headers = HttpHeaders().apply {
100+
contentType = MediaType.APPLICATION_JSON
101+
}
101102

102103
val entity = HttpEntity(json, headers)
103104

0 commit comments

Comments
 (0)