candlecorp / wick

Functional, reactive WebAssembly with a twist
https://candle.dev
Other
471 stars 17 forks source link

Fixed source of "could not decode body as JSON" warnings #429

Closed jsoverson closed 1 year ago

jsoverson commented 1 year ago

When specifying the Json codec, the rest router was trying to decode the body as JSON regardless of whether the body exists. Since bodies are optional, the rest router needed to be updated to account for it.