diff --git a/src/main/java/org/javawebstack/httpclient/HTTPRequest.java b/src/main/java/org/javawebstack/httpclient/HTTPRequest.java index 5534399..4352c66 100644 --- a/src/main/java/org/javawebstack/httpclient/HTTPRequest.java +++ b/src/main/java/org/javawebstack/httpclient/HTTPRequest.java @@ -22,7 +22,7 @@ public class HTTPRequest { private Map responseHeaders = new HashMap<>(); private final List requestCookies = new ArrayList<>(); private final List responseCookies = new ArrayList<>(); - private byte[] responseBody; + private byte[] responseBody = new byte[0]; private int status; private String statusMessage; private boolean executed;