You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#3711
The `contentType` header may come with parameter in its media type.
* Fix `AbstractHttpRequestExecutingMessageHandler` to use `equalsTypeAndSubtype()`
ignoring params
* Some other code clean up in the `AbstractHttpRequestExecutingMessageHandler`
* Ensure in the `HttpRequestExecutingMessageHandlerTests.simpleStringKeyStringValueFormData()`
that provided `contentType` header is handled properly
* Fix `HttpProxyScenarioTests.testHttpMultipartProxyScenario()` for mislead multi-part form
handling
**Cherry-pick to `5.5.x`**
Copy file name to clipboardExpand all lines: spring-integration-http/src/main/java/org/springframework/integration/http/outbound/AbstractHttpRequestExecutingMessageHandler.java
+8-9
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2017-2021 the original author or authors.
2
+
* Copyright 2017-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -118,8 +118,8 @@ public AbstractHttpRequestExecutingMessageHandler(Expression uriExpression) {
118
118
119
119
/**
120
120
* Set the encoding mode to use.
121
-
* By default this is set to {@link DefaultUriBuilderFactory.EncodingMode#TEMPLATE_AND_VALUES}.
122
-
* For more complicated scenarios consider to configure an {@link org.springframework.web.util.UriTemplateHandler}
121
+
* By default, this is set to {@link DefaultUriBuilderFactory.EncodingMode#TEMPLATE_AND_VALUES}.
122
+
* For more complicated scenarios consider configuring an {@link org.springframework.web.util.UriTemplateHandler}
123
123
* on an externally provided {@link org.springframework.web.client.RestTemplate}.
124
124
* @param encodingMode the mode to use for uri encoding
125
125
* @since 5.3
@@ -151,7 +151,7 @@ public void setHttpMethod(HttpMethod httpMethod) {
151
151
/**
152
152
* Specify whether the outbound message's payload should be extracted
153
153
* when preparing the request body.
154
-
* Otherwise the Message instance itself is serialized.
154
+
* Otherwise, the Message instance itself is serialized.
155
155
* The default value is {@code true}.
156
156
* @param extractPayload true if the payload should be extracted.
157
157
*/
@@ -189,7 +189,7 @@ public void setExpectReply(boolean expectReply) {
189
189
190
190
/**
191
191
* Specify the expected response type for the REST request.
192
-
* Otherwise it is null and an empty {@link ResponseEntity} is returned from HTTP client.
192
+
* Otherwise, it is null and an empty {@link ResponseEntity} is returned from HTTP client.
193
193
* To take advantage of the HttpMessageConverters
194
194
* registered on this adapter, provide a different type).
Copy file name to clipboardExpand all lines: spring-integration-http/src/test/java/org/springframework/integration/http/HttpProxyScenarioTests-context.xml
Copy file name to clipboardExpand all lines: spring-integration-http/src/test/java/org/springframework/integration/http/outbound/HttpRequestExecutingMessageHandlerTests.java
+19-10
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2021 the original author or authors.
2
+
* Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments