docs(README): fix wrong order of arguments in the accept example (#224)

fixes #222

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
Lucas Holmquist 2020-06-18 17:11:46 -04:00 committed by GitHub
parent 7012433074
commit 850e893ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const {
const receiver = new HTTPReceiver();
// body and headers come from an incoming HTTP request, e.g. express.js
const receivedEvent = receiver.accept(req.body, req.headers);
const receivedEvent = receiver.accept(req.headers, req.body);
console.log(receivedEvent.format());
```