Skip to content

Commit 2410f06

Browse files
committed
Merge branch '1.0.x'
2 parents 130b411 + 068e596 commit 2410f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-restdocs-core/src/main/java/org/springframework/restdocs/http/HttpRequestSnippet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private List<Map<String, String>> getHeaders(OperationRequest request) {
8282

8383
for (Entry<String, List<String>> header : request.getHeaders().entrySet()) {
8484
for (String value : header.getValue()) {
85-
if (header.getKey() == HttpHeaders.CONTENT_TYPE
85+
if (HttpHeaders.CONTENT_TYPE.equals(header.getKey())
8686
&& !request.getParts().isEmpty()) {
8787
headers.add(header(header.getKey(),
8888
String.format("%s; boundary=%s", value, MULTIPART_BOUNDARY)));

0 commit comments

Comments
 (0)