mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 19:39:21 +00:00
398467 Servlet 3.1 Non Blocking IO
fixed some tests
This commit is contained in:
parent
83b55418f5
commit
70b285eabd
@ -826,7 +826,7 @@ public class HttpFields implements Iterable<HttpField>
|
||||
if (value != null && value.length() > 0)
|
||||
QuotedStringTokenizer.quoteIfNeeded(buf, value, delim);
|
||||
|
||||
if (version!=0)
|
||||
if (version>0)
|
||||
buf.append(";Version=").append(version);
|
||||
|
||||
if (path != null && path.length() > 0)
|
||||
|
@ -344,7 +344,7 @@ public class HttpFieldsTest
|
||||
fields.clear();
|
||||
fields.addSetCookie("ev erything","va lue","do main","pa th",1,"co mment",true,true,2);
|
||||
String setCookie=fields.getStringField("Set-Cookie");
|
||||
assertThat(setCookie,Matchers.startsWith("\"ev erything\"=\"va lue\";Path=\"pa th\";Domain=\"do main\";Expires="));
|
||||
assertThat(setCookie,Matchers.startsWith("\"ev erything\"=\"va lue\";Version=2;Path=\"pa th\";Domain=\"do main\";Expires="));
|
||||
assertThat(setCookie,Matchers.endsWith(" GMT;Max-Age=1;Secure;HttpOnly;Comment=\"co mment\""));
|
||||
|
||||
fields.clear();
|
||||
|
@ -43,7 +43,7 @@ public class HttpWriterTest
|
||||
_bytes = BufferUtil.allocate(2048);
|
||||
|
||||
final ByteBufferPool bufferPool = new MappedByteBufferPool();
|
||||
HttpChannel<?> channel = new HttpChannel<ByteBuffer>(null,new HttpConfiguration(),null,null,null)
|
||||
HttpChannel<?> channel = new HttpChannel<ByteBuffer>(null,new HttpConfiguration(),null,null,new ByteBufferHttpInput())
|
||||
{
|
||||
@Override
|
||||
public ByteBufferPool getByteBufferPool()
|
||||
|
Loading…
x
Reference in New Issue
Block a user