In the case of a 204 status response, there will be no data frame sent and the headers frame will have the endofstream flag set (assuming there are no continuation frames). This update will check to see if the endofstream flag is set in the headers frame and complete the stream/result if it is set. Additionally, updated travis ci.
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
.travis.yml
has changed.
pom.xml
has changed.
@@ -173,6 +173,12 @@
Loading
173 | 173 | result.setResponseHeaders(responseHeaders); |
|
174 | 174 | result.setHeadersSize(rawHeaders.length()); |
|
175 | 175 | result.setHttpFieldsResponse(frame.getMetaData().getFields()); |
|
176 | + | // Check if the stream has ended (as in the case of a 204) |
|
177 | + | if (frame.isEndStream()) { |
|
178 | + | result.setSuccessful(isSuccessCode(Integer.parseInt(result.getResponseCode()))); |
|
179 | + | result.setResponseData(this.responseBytes); |
|
180 | + | completeStream(); |
|
181 | + | } |
|
176 | 182 | } |
|
177 | 183 | ||
178 | 184 | @Override |
Files | Coverage |
---|---|
src/main/java/com/blazemeter/jmeter/http2 | 22.71% |
Project Totals (13 files) | 22.71% |
14.1
TRAVIS_JDK_VERSION=oraclejdk8 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.