Upgrade to Spring Framework 6.0.0-RC1

Closes gh-854
This commit is contained in:
Andy Wilkinson
2022-10-15 16:32:18 +01:00
parent 632e735550
commit 96b00d33d9
2 changed files with 5 additions and 4 deletions

View File

@@ -6,4 +6,4 @@ org.gradle.parallel=true
javaFormatVersion=0.0.34
jmustacheVersion=1.15
springFrameworkVersion=6.0.0-M5
springFrameworkVersion=6.0.0-RC1

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2021 the original author or authors.
* Copyright 2014-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -119,8 +119,9 @@ class WebTestClientRequestConverter implements RequestConverter<ExchangeResult>
@Override
public Flux<DataBuffer> getBody() {
DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer();
buffer.write(this.result.getRequestBodyContent());
byte[] requestBodyContent = this.result.getRequestBodyContent();
DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer(requestBodyContent.length);
buffer.write(requestBodyContent);
return Flux.fromArray(new DataBuffer[] { buffer });
}