mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
The API decodeBody function will now check the content length before attempting to decode. If the length is zero, and the out interface is nil then it is safe to assume the API call is not returning any data to the user. This allows us to better handle passing nil to API calls in a single place.
25 KiB
25 KiB