Merged branch 'master' into 'jetty-9.1'.

This commit is contained in:
Simone Bordet 2013-10-21 10:49:15 +02:00
commit 5cc0247a67
1 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,11 @@ public class StringContentProvider extends BytesContentProvider
public StringContentProvider(String content, String encoding)
{
super(content.getBytes(Charset.forName(encoding)));
this(content, Charset.forName(encoding));
}
public StringContentProvider(String content, Charset charset)
{
super(content.getBytes(charset));
}
}