We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1015cea commit 287e589Copy full SHA for 287e589
lib/application.js
@@ -44,13 +44,14 @@ module.exports = class Application extends Emitter {
44
*
45
*/
46
47
- constructor(options = {}) {
+ constructor(options) {
48
super();
49
+ options = options || {};
50
this.proxy = options.proxy || false;
- this.middleware = [];
51
this.subdomainOffset = options.subdomainOffset || 2;
52
this.env = options.env || process.env.NODE_ENV || 'development';
53
- this.keys = options.keys || undefined;
+ if (options.keys) this.keys = options.keys;
54
+ this.middleware = [];
55
this.context = Object.create(context);
56
this.request = Object.create(request);
57
this.response = Object.create(response);
0 commit comments