Consistently set content type of the request with multipart

Closes gh-33232
This commit is contained in:
Stéphane Nicoll
2024-07-18 11:51:58 +02:00
parent 265299c790
commit 6590ab6bf9
3 changed files with 65 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ public abstract class AbstractMockMultipartHttpServletRequestBuilder<B extends A
protected AbstractMockMultipartHttpServletRequestBuilder(HttpMethod httpMethod) {
super(httpMethod);
super.contentType(MediaType.MULTIPART_FORM_DATA);
}
/**