Skip to content

Commit

Permalink
Merge pull request #5430 from TomasHofman/default-encoding-4.0
Browse files Browse the repository at this point in the history
Backport: Default encoding should be prechecked
  • Loading branch information
BalusC committed Mar 26, 2024
2 parents cb971c3 + cea3398 commit c9192d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion impl/src/main/java/com/sun/faces/util/Util.java
Expand Up @@ -1677,7 +1677,9 @@ public static String getResponseEncoding(FacesContext context, Optional<String>

if (encoding == null) {
// 5. If still none found then fall back to specified default.
encoding = defaultEncoding.get();
if (defaultEncoding.isPresent()) {
encoding = defaultEncoding.get();
}

if (encoding != null && !encoding.isBlank()) {
if (LOGGER.isLoggable(FINEST)) {
Expand Down

0 comments on commit c9192d6

Please sign in to comment.