ASF Bugzilla – Attachment 33743 Details for
Bug 59295
Content-Language headers created by Response.setLocale do not fully represent the locale
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file with a fix. Based off of the trunk of the Tomcat 8.0 branch.
correctcontentlanguage.patch (text/plain), 874 bytes, created by
zikfat
on 2016-04-08 22:39:41 UTC
(
hide
)
Description:
Patch file with a fix. Based off of the trunk of the Tomcat 8.0 branch.
Filename:
MIME Type:
Creator:
zikfat
Created:
2016-04-08 22:39:41 UTC
Size:
874 bytes
patch
obsolete
>Index: java/org/apache/coyote/Response.java >=================================================================== >--- java/org/apache/coyote/Response.java (revision 1738302) >+++ java/org/apache/coyote/Response.java (working copy) >@@ -373,17 +373,7 @@ > this.locale = locale; > > // Set the contentLanguage for header output >- contentLanguage = locale.getLanguage(); >- if ((contentLanguage != null) && (contentLanguage.length() > 0)) { >- String country = locale.getCountry(); >- StringBuilder value = new StringBuilder(contentLanguage); >- if ((country != null) && (country.length() > 0)) { >- value.append('-'); >- value.append(country); >- } >- contentLanguage = value.toString(); >- } >- >+ contentLanguage = locale.toLanguageTag(); > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59295
: 33743