8000 docs(README): fix wrong order of arguments in the accept example (#224) · lholmquist/sdk-javascript@850e893 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 850e893

Browse files
authored
docs(README): fix wrong order of arguments in the accept example (cloudevents#224)
fixes cloudevents#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

Lines changed: 1 addition & 1 deletion
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)
0