mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-23 07:37:55 +00:00
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…
x
Reference in New Issue
Block a user