Files
nomad/api
James Rasell d890ddbfd9 api: check response content length before decoding.
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.
2020-02-20 10:07:44 +01:00
..
2017-10-13 14:36:02 -07:00
2017-10-13 13:12:20 -07:00
2017-10-13 13:12:20 -07:00
2020-01-29 13:55:39 -05:00
2020-01-09 15:15:12 -05:00
2017-07-21 16:33:04 -07:00
2019-11-19 08:40:19 -08:00
2018-05-31 10:57:08 -07:00
2019-12-16 12:47:10 +01:00
2019-12-16 12:47:10 +01:00
2017-09-19 10:08:23 -05:00
2017-10-13 14:36:02 -07:00
2020-02-16 16:04:59 -06:00
2017-10-13 14:36:02 -07:00
2017-10-13 14:36:02 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-07-21 16:33:04 -07:00
2016-03-17 16:04:09 -07:00
2017-07-21 16:33:04 -07:00
2019-12-16 11:38:16 -05:00
2019-01-18 15:31:31 -05:00
2019-01-30 12:23:14 -08:00