From 16eecb04d945f237bb0f6f38b764e47d6a56d206 Mon Sep 17 00:00:00 2001 From: Hunter LaFaille Date: Tue, 26 Nov 2024 13:41:25 +0000 Subject: [PATCH] Fixing content type not being appended to the headers --- src/java/com/kerosenelabs/kindling/HttpResponse.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/com/kerosenelabs/kindling/HttpResponse.java b/src/java/com/kerosenelabs/kindling/HttpResponse.java index 64676bc..406623d 100644 --- a/src/java/com/kerosenelabs/kindling/HttpResponse.java +++ b/src/java/com/kerosenelabs/kindling/HttpResponse.java @@ -33,6 +33,7 @@ public class HttpResponse { if (contentType == null) { throw new KindlingException("Programming error, you must specify a Content"); } + headers.put("Content-Type", contentType.getMimeType()); } public String toString() {