Merged branch 'master' into 'jetty-9.1'.
This commit is contained in:
commit
5cc0247a67
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue