mirror of https://github.com/dapr/dotnet-sdk.git
Fixes: #592 This change teaches the cloud events middleware to JSON-decode non-JSON content when it appears in the `data` attribute in a cloud event. There are three cases for cloud events that matter: - data is used, content is a JSON object, datacontentype is JSON - data is used, content is a JSON string, dataconenttype != JSON - data_base64 is used, content is base64 bytes We weren't handling the second of this. If you submitted the content: `"data": "hello, "\world!\""` with datacontenttype = text/plain You would end up with `"hello, \"world!\""` in the request body instead of `hello, "world!"`. This is a very subtle case, and I'm trying to fix it before users couple their code to the wrong behavior. Since this is technically a breaking change, I've added a opt-out so you can restore the buggy behavior. |
||
|---|---|---|
| .. | ||
| Dapr.AspNetCore.IntegrationTest.App.csproj | ||
| DaprController.cs | ||
| Program.cs | ||
| Startup.cs | ||
| UserInfo.cs | ||
| Widget.cs | ||