This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new bc0d31d  Fix generated Content-disposition header for failing test
bc0d31d is described below

commit bc0d31de7b06b4b2666637e8fdcee74548e3e79f
Author: Felix Schumacher <[email protected]>
AuthorDate: Thu Feb 17 21:19:14 2022 +0100

    Fix generated Content-disposition header for failing test
    
    After fixing issue 65884, the parser for the content-disposition header is 
more
    lenient on the usage of quotes, but less forgiving about missing seperators 
between
    the parameters.
    
    Part of Bugzilla Id: 65884
---
 .../java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
index 2c2c2d9..82c5b46 100644
--- 
a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
+++ 
b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
@@ -612,7 +612,7 @@ public class TestHttpRequestHdr extends JMeterTestCase {
             String fileMimeType, String fileContent, String boundary, String 
endOfLine) {
         // File upload multipart
         String postBody = "--" + boundary + endOfLine
-            + "Content-Disposition: form-data; name=\"" + fileField + "\" 
filename=\"" + fileName + "\"" + endOfLine
+            + "Content-Disposition: form-data; name=\"" + fileField + "\"; 
filename=\"" + fileName + "\"" + endOfLine
             + "Content-Type: " + fileMimeType + endOfLine
             + "Content-Transfer-Encoding: binary" + endOfLine
             + endOfLine

Reply via email to