Content exchange mimetype with multiple parameters

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1161 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-12-21 02:41:00 +00:00
parent c5b8386194
commit 4edb10b457
1 changed files with 5 additions and 0 deletions

View File

@ -81,7 +81,12 @@ public class ContentExchange extends CachedExchange
String mime = StringUtil.asciiToLowerCase(value.toString());
int i = mime.indexOf("charset=");
if (i > 0)
{
_encoding = mime.substring(i + 8);
i = _encoding.indexOf(';');
if (i > 0)
_encoding = _encoding.substring(0, i);
}
break;
}
}