We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a0275a + 403d3d9 commit 6a1bc8fCopy full SHA for 6a1bc8f
src/main/java/de/sstoehr/harreader/model/HarResponse.java
@@ -22,7 +22,7 @@ public class HarResponse {
22
23
protected static final Long DEFAULT_SIZE = -1L;
24
25
- private HttpStatus parsedStatus;
+ private HttpStatus parsedStatus = HttpStatus.UNKNOWN_HTTP_STATUS;
26
private int status = HttpStatus.UNKNOWN_HTTP_STATUS.getCode();
27
private String statusText;
28
private String httpVersion;
@@ -39,9 +39,6 @@ public class HarResponse {
39
* @return Response status, 0 if not present or unknown.
40
*/
41
public int getStatus() {
42
- if (parsedStatus == null) {
43
- parsedStatus = HttpStatus.UNKNOWN_HTTP_STATUS;
44
- }
45
return parsedStatus.getCode();
46
}
47
0 commit comments