From d2387116fcb86f0bc77286d501d095faaffce91b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Oct 2010 11:53:43 +0200 Subject: [PATCH] Initialize response with empty header map. --- src/main/java/net/pterodactylus/sone/web/page/Page.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /** -- 2.7.4