Files
Ali Yusuf d7e83704bf fix(next): bind new stream functions with base incomingMessage object (#37806)
Closes: #37805

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-06-27 20:56:14 +00:00

13 lines
185 B
JavaScript

export const config = {
api: {
bodyParser: false,
},
}
export default function handler(req, res) {
return res.json({
method: req.method,
headers: req.headers,
})
}