Skip to content

Commit 850e893

Browse files
authored
docs(README): fix wrong order of arguments in the accept example (#224)
fixes #222 Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
1 parent 7012433 commit 850e893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const {
4343
const receiver = new HTTPReceiver();
4444

4545
// body and headers come from an incoming HTTP request, e.g. express.js
46-
const receivedEvent = receiver.accept(req.body, req.headers);
46+
const receivedEvent = receiver.accept(req.headers, req.body);
4747
console.log(receivedEvent.format());
4848
```
4949

0 commit comments

Comments
 (0)