Fix multipart request test with Jetty server
See gh-27424
This commit is contained in:
		
							parent
							
								
									853ab5d67b
								
							
						
					
					
						commit
						8b5f5d9f65
					
				| 
						 | 
					@ -139,17 +139,16 @@ public class RequestPartIntegrationTests {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@Test  // SPR-13319
 | 
						@Test  // SPR-13319
 | 
				
			||||||
	public void standardMultipartResolverWithEncodedFileName() throws Exception {
 | 
						public void standardMultipartResolverWithEncodedFileName() throws Exception {
 | 
				
			||||||
		byte[] boundary = MimeTypeUtils.generateMultipartBoundary();
 | 
							String boundaryText = MimeTypeUtils.generateMultipartBoundaryString();
 | 
				
			||||||
		String boundaryText = new String(boundary, "US-ASCII");
 | 
					 | 
				
			||||||
		Map<String, String> params = Collections.singletonMap("boundary", boundaryText);
 | 
							Map<String, String> params = Collections.singletonMap("boundary", boundaryText);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		String content =
 | 
							String content =
 | 
				
			||||||
				"--" + boundaryText + "\n" +
 | 
									"--" + boundaryText + "\r\n" +
 | 
				
			||||||
				"Content-Disposition: form-data; name=\"file\"; filename*=\"utf-8''%C3%A9l%C3%A8ve.txt\"\n" +
 | 
									"Content-Disposition: form-data; name=\"file\"; filename*=\"utf-8''%C3%A9l%C3%A8ve.txt\"\r\n" +
 | 
				
			||||||
				"Content-Type: text/plain\n" +
 | 
									"Content-Type: text/plain\r\n" +
 | 
				
			||||||
				"Content-Length: 7\n" +
 | 
									"Content-Length: 7\r\n" +
 | 
				
			||||||
				"\n" +
 | 
									"\r\n" +
 | 
				
			||||||
				"content\n" +
 | 
									"content\r\n" +
 | 
				
			||||||
				"--" + boundaryText + "--";
 | 
									"--" + boundaryText + "--";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		RequestEntity<byte[]> requestEntity =
 | 
							RequestEntity<byte[]> requestEntity =
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue