diff src/org/eclipse/jetty/server/Request.java @ 831:86338c0029a9

simplify HttpFields
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 16 Sep 2016 00:26:23 -0600
parents 0048a843297a
children fa6158f29c45
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Request.java	Thu Sep 15 18:30:38 2016 -0600
+++ b/src/org/eclipse/jetty/server/Request.java	Fri Sep 16 00:26:23 2016 -0600
@@ -645,7 +645,7 @@
 	 */
 	public Locale getLocale()
 	{
-		Enumeration enm = _connection.getRequestFields().getValues(HttpHeaders.ACCEPT_LANGUAGE,HttpFields.__separators);
+		Enumeration enm = _connection.getRequestFields().getValues( "Accept-Language", ", \t" );
 
 		// handle no locale
 		if (enm == null || !enm.hasMoreElements())
@@ -682,7 +682,7 @@
 	public Enumeration getLocales()
 	{
 
-		Enumeration enm = _connection.getRequestFields().getValues(HttpHeaders.ACCEPT_LANGUAGE,HttpFields.__separators);
+		Enumeration enm = _connection.getRequestFields().getValues( "Accept-Language", ", \t" );
 
 		// handle no locale
 		if (enm == null || !enm.hasMoreElements())