Initialize response with empty header map.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 09:53:43 +0000 (11:53 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 09:53:43 +0000 (11:53 +0200)
src/main/java/net/pterodactylus/sone/web/page/Page.java

index c953ed9..7a9b281 100644 (file)
@@ -209,7 +209,7 @@ public interface Page {
                 *            The content of the reponse body
                 */
                public Response(int statusCode, String statusText, String contentType, byte[] content) {
-                       this(statusCode, statusText, contentType, null, content);
+                       this(statusCode, statusText, contentType, new HashMap<String, String>(), content);
                }
 
                /**