From ff5e7d15a39069e05c2d9190383aea006fe8f4a3 Mon Sep 17 00:00:00 2001 From: Hunter LaFaille Date: Tue, 26 Nov 2024 15:51:40 +0000 Subject: [PATCH] Changing text to be plain when content type is not set --- src/java/com/kerosenelabs/kindling/HttpResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/kerosenelabs/kindling/HttpResponse.java b/src/java/com/kerosenelabs/kindling/HttpResponse.java index 406623d..3bb0512 100644 --- a/src/java/com/kerosenelabs/kindling/HttpResponse.java +++ b/src/java/com/kerosenelabs/kindling/HttpResponse.java @@ -31,7 +31,7 @@ public class HttpResponse { } } if (contentType == null) { - throw new KindlingException("Programming error, you must specify a Content"); + contentType = MimeType.TEXT_PLAIN; } headers.put("Content-Type", contentType.getMimeType()); }