From 1887aa4533e83b45fb2a2e670a9f8e4531fd60d8 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 15 Jun 2020 11:23:11 -0400 Subject: [PATCH] docs(README): fix wrong order of arguments in the accept example fixes #222 Signed-off-by: Lucas Holmquist --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b51b3993..b2b79b1a 100644 --- a/README.md +++ b/README.md @@ -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()); ```