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:
parent
c5b8386194
commit
4edb10b457
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue