Latest commit ce6e06c
Mar 12, 2016
…ck invocation in `touch` See express-session's implementation: https://github.com/expressjs/session/blob/master/index.js#L303 The callback needs to be invoked in all calls to `touch`, or else `writeend` is never called inside express-session's `end` method, which finishes the response. In connect-sqlite3's `touch` method, the callback was not invoked if the cookie wasn't set to expire (which happens when no maxAge is set for the cookie, or with resave=false in the connect-sqlite3 configuration). This resulted in a browser hang and an `ERR_CONTENT_LENGTH_MISMATCH` due to a missing chunk at the end of the response. This patch fixes that by invoking the `touch` callback even if the db doesn't require an update.
|Failed to load latest commit information.|