From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 09:53:43 +0000 (+0200) Subject: Initialize response with empty header map. X-Git-Tag: 0.1-RC1~246 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=d2387116fcb86f0bc77286d501d095faaffce91b Initialize response with empty header map. --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/Page.java b/src/main/java/net/pterodactylus/sone/web/page/Page.java index c953ed9..7a9b281 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/Page.java +++ b/src/main/java/net/pterodactylus/sone/web/page/Page.java @@ -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(), content); } /**