Skip to content

Commit 6af1b0b

Browse files
committed
Doc update
Signed-off-by: Denis Makogon <[email protected]>
1 parent 8e142cb commit 6af1b0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ from cloudevents.sdk import marshaller
1111

1212
data = "<this is where your CloudEvent comes from>"
1313
m = marshaller.NewDefaultHTTPMarshaller(upstream.Event)
14-
event = m.FromRequest({"Content-Type": "application/cloudevents+json"}, data)
14+
event = m.FromRequest(
15+
{"Content-Type": "application/cloudevents+json"},
16+
data,
17+
lambda x: x.read()
18+
)
1519

1620
```
1721

0 commit comments

Comments
 (0)