According to the spec it is allowed to have cookies that only use the Expires attribute (even though it's really old style).

MockHttpServletResponse didn't previously support that properly.

So, added a testcase and made it work.

Comment From: pivotal-issuemaster

@koosg Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@koosg Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

For reference: HTTP Cookie Syntax.

Comment From: sbrannen

This has been merged into master for 5.3.5 and backported to 5.2.x for 5.2.14.

Thanks