We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34bb29b commit 125993bCopy full SHA for 125993b
lib/request.js
@@ -170,6 +170,9 @@ class REQUEST {
170
this.body = UTILS.parseBody(this.body)
171
}
172
173
+ // Init the stack reporter
174
+ this.stack = null
175
+
176
// Extract path from event (strip querystring just in case)
177
let path = UTILS.parsePath(this.path)
178
@@ -236,6 +239,9 @@ class REQUEST {
236
239
// Set the execution stack
237
240
this._stack = route.inherited.concat(route.stack)
238
241
242
+ // Set the stack reporter
243
+ this.stack = this._stack.map(x => x.name.trim() !== '' ? x.name : 'unnamed')
244
245
} else {
246
this.app._errorStatus = 405
247
throw new MethodError('Method not allowed',this.method,'/'+path.join('/'))
0 commit comments