View | Details | Raw Unified | Return to bug 59295
Collapse All | Expand All

(-)java/org/apache/coyote/Response.java (-11 / +1 lines)
Lines 373-389 Link Here
373
        this.locale = locale;
373
        this.locale = locale;
374
374
375
        // Set the contentLanguage for header output
375
        // Set the contentLanguage for header output
376
        contentLanguage = locale.getLanguage();
376
        contentLanguage = locale.toLanguageTag();
377
        if ((contentLanguage != null) && (contentLanguage.length() > 0)) {
378
            String country = locale.getCountry();
379
            StringBuilder value = new StringBuilder(contentLanguage);
380
            if ((country != null) && (country.length() > 0)) {
381
                value.append('-');
382
                value.append(country);
383
            }
384
            contentLanguage = value.toString();
385
        }
386
387
    }
377
    }
388
378
389
    /**
379
    /**

Return to bug 59295