Skip to content

Commit

Permalink
docs(README): fix wrong order of arguments in the accept example (clo…
Browse files Browse the repository at this point in the history
…udevents#224)

fixes cloudevents#222

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
  • Loading branch information
lholmquist authored Jun 18, 2020
1 parent 7012433 commit 850e893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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());
```

Expand Down

0 comments on commit 850e893

Please # to comment.