Skip to content

Commit 96b00d3

Browse files
committed
Upgrade to Spring Framework 6.0.0-RC1
Closes gh-854
1 parent 632e735 commit 96b00d3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ org.gradle.parallel=true
66

77
javaFormatVersion=0.0.34
88
jmustacheVersion=1.15
9-
springFrameworkVersion=6.0.0-M5
9+
springFrameworkVersion=6.0.0-RC1

spring-restdocs-webtestclient/src/main/java/org/springframework/restdocs/webtestclient/WebTestClientRequestConverter.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -119,8 +119,9 @@ public HttpHeaders getHeaders() {
119119

120120
@Override
121121
public Flux<DataBuffer> getBody() {
122-
DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer();
123-
buffer.write(this.result.getRequestBodyContent());
122+
byte[] requestBodyContent = this.result.getRequestBodyContent();
123+
DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer(requestBodyContent.length);
124+
buffer.write(requestBodyContent);
124125
return Flux.fromArray(new DataBuffer[] { buffer });
125126
}
126127

0 commit comments

Comments
 (0)