• V
    Preserve expires attribute in MockCookie · 9b208761
    Vedran Pavic 提交于
    At present, MockCookie doesn't preserve expires attribute. This has a
    consequence that a cookie value set using
    MockHttpServletResponse#addHeader containing an expires attribute will
    not match the cookie value obtained from
    MockHttpServletResponse#getHeader, since the expires attribute will get
    calculated based on current time.
    
    This commit enhances MockCookie to preserve the expires attribute.
    
    Closes gh-23769
    9b208761
MockHttpServletResponse.java 22.2 KB