mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
Fix #5605 Unblock non container Threads
test and fixes for the write side.
This commit is contained in:
parent
0d85c7d220
commit
a110fc3468
@ -1812,7 +1812,10 @@ public class Request implements HttpServletRequest
|
||||
public void setMetaData(org.eclipse.jetty.http.MetaData.Request request)
|
||||
{
|
||||
if (_metaData == null)
|
||||
{
|
||||
_input.recycle();
|
||||
_channel.getResponse().getHttpOutput().reopen();
|
||||
}
|
||||
_metaData = request;
|
||||
|
||||
setMethod(request.getMethod());
|
||||
|
@ -493,6 +493,7 @@ public class ResponseTest
|
||||
assertEquals("foo2/bar2;charset=utf-8", response.getContentType());
|
||||
|
||||
response.recycle();
|
||||
response.reopen();
|
||||
|
||||
response.setCharacterEncoding("utf16");
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
@ -505,6 +506,7 @@ public class ResponseTest
|
||||
assertEquals("text/xml;charset=utf-8", response.getContentType());
|
||||
|
||||
response.recycle();
|
||||
response.reopen();
|
||||
response.setCharacterEncoding("utf-16");
|
||||
response.setContentType("foo/bar");
|
||||
assertEquals("foo/bar;charset=utf-16", response.getContentType());
|
||||
|
Loading…
x
Reference in New Issue
Block a user