Skip to content

Commit

Permalink
Merge pull request #16 from Kerosene-Labs/fix-content-type-not-being-set
Browse files Browse the repository at this point in the history
Changing text to be plain when content type is not set
  • Loading branch information
hlafaille authored Nov 26, 2024
2 parents a449dd6 + ff5e7d1 commit 576ea71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/com/kerosenelabs/kindling/HttpResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 576ea71

Please sign in to comment.