netty5/codec-http/src/test/java/io/netty/handler/codec/http/cookie
Stephane Landelle f6299d942c Minor ClientCookieDecoder improvements
Motivation:

* Path attribute should be null, not empty String, if it's passed as "Path=".
* Only extract attribute value when the name is recognized.
* Only extract Expires attribute value String if MaxAge is undefined as it has precedence.

Modification:

Modify ClientCookieDecoder.
Add "testIgnoreEmptyPath" test in ClientCookieDecoderTest.

Result:

More idyomatic Path behavior (like Domain).
Minor performance improvement in some corner cases.
2015-05-12 11:25:28 +02:00
..
ClientCookieDecoderTest.java Minor ClientCookieDecoder improvements 2015-05-12 11:25:28 +02:00
ClientCookieEncoderTest.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00
ServerCookieDecoderTest.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00
ServerCookieEncoderTest.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00