Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudevents/sdk/event/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def MarshalBinary(
headers["content-type"] = self.ContentType()
props = self.Properties()
for key, value in props.items():
if key not in ["data", "extensions", "contenttype"]:
if key not in ["data", "extensions", "datacontenttype"]:
if value is not None:
headers["ce-{0}".format(key)] = value

Expand Down
2 changes: 1 addition & 1 deletion cloudevents/tests/test_with_sanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def echo(request):
v1.Event(), dict(request.headers), request.body, lambda x: x
)
hs, body = m.ToRequest(event, converters.TypeBinary, lambda x: x)
return response.text(body, headers=hs)
return response.text(body.decode("utf-8"), headers=hs)


def test_reusable_marshaller():
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ flake8-strict
pytest==4.0.0
pytest-cov==2.4.0
# web app tests
sanic
sanic==20.12.3
aiohttp
Pillow
requests
Expand Down