|
headers["content-type"] = attrs.pop("datacontenttype").encode("utf-8") |
Hi, I don't understand why in the Python implementation the decision to pop instead of get was made. In the Java implementation, for the structured mode transport, the datacontenttype field remains in the message value.
Removing this field breaks compatibility between Python and other SDKs, such as Java.
sdk-python/src/cloudevents/v1/kafka/conversion.py
Line 217 in e5df229
Hi, I don't understand why in the Python implementation the decision to
popinstead ofgetwas made. In the Java implementation, for the structured mode transport, thedatacontenttypefield remains in the message value.Removing this field breaks compatibility between Python and other SDKs, such as Java.