Request headers are undefined in custom route handlers #1805
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Milestone
From an internal report, it was noticed that
req.headers === undefined
in custom route handlers, which causes runtime errors when attempting to access attributes such asreq.headers.host
.Reproducible in:
SDK version:
@slack/[email protected]
Steps to reproduce:
App
using the following:http://localhost:3000/health
Expected result:
The
req.headers.host
attribute to be set tolocalhost:3000
and thereq.headers
object to be defined with properties from the request.Actual result:
The
req.headers
object is undefined.Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: