Thread: [Winstone-devel] winstone/development/src/winstone WinstoneRequest.java,1.22,1.23
Status: Beta
Brought to you by:
rickknowles
From: Rick K. <ric...@us...> - 2004-11-30 00:59:26
|
Update of /cvsroot/winstone/winstone/development/src/winstone In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20127/development/src/winstone Modified Files: WinstoneRequest.java Log Message: fiexd bug 1075390 - locales returning null Index: WinstoneRequest.java =================================================================== RCS file: /cvsroot/winstone/winstone/development/src/winstone/WinstoneRequest.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** WinstoneRequest.java 29 Nov 2004 15:25:05 -0000 1.22 --- WinstoneRequest.java 30 Nov 2004 00:59:15 -0000 1.23 *************** *** 559,565 **** public Locale getLocale() ! {return this.locales.isEmpty() ? null : (Locale) this.locales.get(0);} ! public Enumeration getLocales() {return Collections.enumeration(this.locales);} public String getProtocol() {return this.protocol;} --- 559,571 ---- public Locale getLocale() ! {return this.locales.isEmpty() ? Locale.getDefault() : (Locale) this.locales.get(0);} ! public Enumeration getLocales() ! { ! List sendLocales = this.locales; ! if (sendLocales.isEmpty()) ! sendLocales.add(Locale.getDefault()); ! return Collections.enumeration(sendLocales); ! } public String getProtocol() {return this.protocol;} |