View | Details | Raw Unified | Return to bug 61384
Collapse All | Expand All

(-)src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (-3 / +2 lines)
Lines 1242-1248 Link Here
1242
        if(getUseMultipartForPost()) {
1242
        if(getUseMultipartForPost()) {
1243
            // If a content encoding is specified, we use that as the
1243
            // If a content encoding is specified, we use that as the
1244
            // encoding of any parameter values
1244
            // encoding of any parameter values
1245
            Charset charset = null;
1245
            Charset charset;
1246
            if(haveContentEncoding) {
1246
            if(haveContentEncoding) {
1247
                charset = Charset.forName(contentEncoding);
1247
                charset = Charset.forName(contentEncoding);
1248
            } else {
1248
            } else {
Lines 1254-1261 Link Here
1254
                        getDoBrowserCompatibleMultipart(), charset, haveContentEncoding);
1254
                        getDoBrowserCompatibleMultipart(), charset, haveContentEncoding);
1255
            }
1255
            }
1256
            // Write the request to our own stream
1256
            // Write the request to our own stream
1257
            MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create()
1257
            MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create();
1258
                    .setCharset(charset);
1259
            if(getDoBrowserCompatibleMultipart()) {
1258
            if(getDoBrowserCompatibleMultipart()) {
1260
                multipartEntityBuilder.setLaxMode();
1259
                multipartEntityBuilder.setLaxMode();
1261
            } else {
1260
            } else {

Return to bug 61384