Start version 6.4
* Move `whats-new` to `changes-6.2-6.3.adoc` * Upgrade dependency to the latest (including Gradle) * Move Spring dependencies to based on SF-6.2 * Fix some deprecations and incompatibility
This commit is contained in:
@@ -96,12 +96,13 @@ public class MultipartAwareFormHttpMessageConverter implements HttpMessageConver
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public MultiValueMap<String, ?> read(Class<? extends MultiValueMap<String, ?>> clazz,
|
||||
HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {
|
||||
|
||||
MediaType contentType = inputMessage.getHeaders().getContentType();
|
||||
if (!MediaType.MULTIPART_FORM_DATA.includes(contentType)) {
|
||||
return this.wrappedConverter.read(clazz, inputMessage);
|
||||
return (MultiValueMap<String, ?>) this.wrappedConverter.read(clazz, inputMessage);
|
||||
}
|
||||
Assert.state(inputMessage instanceof MultipartHttpInputMessage,
|
||||
"A request with 'multipart/form-data' Content-Type must be a MultipartHttpInputMessage. "
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2022 the original author or authors.
|
||||
* Copyright 2015-2024 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.
|
||||
@@ -175,7 +175,7 @@ public class CrossOriginTests {
|
||||
private CorsConfiguration getCorsConfiguration(HandlerExecutionChain chain, boolean isPreFlightRequest) {
|
||||
if (isPreFlightRequest) {
|
||||
Object handler = chain.getHandler();
|
||||
assertThat(handler.getClass().getSimpleName().equals("PreFlightHandler")).isTrue();
|
||||
assertThat(handler.getClass().getSimpleName().equals("PreFlightHttpRequestHandler")).isTrue();
|
||||
return TestUtils.getPropertyValue(handler, "config", CorsConfiguration.class);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -764,7 +764,7 @@ public class HttpRequestExecutingMessageHandlerTests {
|
||||
.isThrownBy(() -> handler.handleMessage(new GenericMessage<>("queues/%2f/si.test.queue?foo#bar")));
|
||||
|
||||
assertThat(restTemplate.actualUrl.get())
|
||||
.isEqualTo("https://my.RabbitMQ.com/api/queues/%2f/si.test.queue?foo#bar");
|
||||
.isEqualTo("https://my.rabbitmq.com/api/queues/%2f/si.test.queue?foo#bar");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user