You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the node.js fn handler, the ctx parameter headers property returns:
get headers () {
let headers = {}
for (let k in this._headers) {
if (this._headers.hasOwnProperty(k)) {
headers[k] = new Array(this._headers[k])
}
}
return headers
}
However _headers[k] is already an array, so to get the value for a header you need:
ctx.headers["Content-type"][0]0] which does not seem right.
The text was updated successfully, but these errors were encountered:
In the node.js fn handler, the ctx parameter headers property returns:
get headers () {
let headers = {}
for (let k in this._headers) {
if (this._headers.hasOwnProperty(k)) {
headers[k] = new Array(this._headers[k])
}
}
return headers
}
However _headers[k] is already an array, so to get the value for a header you need:
ctx.headers["Content-type"][0]0] which does not seem right.
The text was updated successfully, but these errors were encountered: