Skip to content
Myr

More refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent fcbc095 · Browse files · 3 files+9 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+9 added−10 removed

  • other:+9 added−10 removed

3 files+9 added−10 removed

modified:lib/express/plugins/session.js+3 added-4 removed
127 unmodified lines
128 * @api private129 */130 131 reap: function(ms) {132 var self = this,133 threshold = Number(new Date(Number(new Date) - ms))132 var threshold = Number(new Date(Number(new Date) - ms))133 this.store.each(function(session, sid){134 if (session.lastAccess < threshold)136 self.destroy(sid)137 })135 this.destroy(sid)136 }, this)137 }138})139140// --- Session
64 unmodified lines
modified:lib/express/plugins/view.js+3 added-3 removed
modified:lib/express/request.js+3 added-3 removed
250 unmodified lines
251 * @api public252 */253 254 attachment: function(path) {255 this.header('content-disposition', path ? 256 'attachment; filename="' + path + '"' :257 'attachment')255 this.header('content-disposition', path256 ? 'attachment; filename="' + path + '"'257 : 'attachment')258 return this259 },260 261 /**
12 unmodified lines