Skip to content

Commit

Permalink
Changing text to be plain when content type is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Nov 26, 2024
1 parent 16eecb0 commit ff5e7d1
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 ff5e7d1

Please sign in to comment.