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

(-)src/protocol/http/org/apache/jmeter/protocol/http/sampler/SoapSampler.java (-1 / +2 lines)
Lines 137-146 Link Here
137
            // to use it.
137
            // to use it.
138
            HeaderManager mngr = getHeaderManager();
138
            HeaderManager mngr = getHeaderManager();
139
            int headerSize = mngr.size();
139
            int headerSize = mngr.size();
140
            for (int idx = 0; idx < headerSize; idx++) {
140
            for (int idx = headerSize - 1; idx >= 0; idx--) {
141
                Header hd = mngr.getHeader(idx);
141
                Header hd = mngr.getHeader(idx);
142
                if (HTTPConstants.HEADER_CONTENT_LENGTH.equalsIgnoreCase(hd.getName())) {// Use this to override file length
142
                if (HTTPConstants.HEADER_CONTENT_LENGTH.equalsIgnoreCase(hd.getName())) {// Use this to override file length
143
                    length = Integer.parseInt(hd.getValue());
143
                    length = Integer.parseInt(hd.getValue());
144
                    break;
144
                }
145
                }
145
                // All the other headers are set up by HTTPSampler2.setupConnection()
146
                // All the other headers are set up by HTTPSampler2.setupConnection()
146
            }
147
            }

Return to bug 55161