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
2019-03-29 14:47:40 -04: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
2019-11-12 11:02:33 -05:00
2019-10-04 11:23:59 -04:00
2019-11-12 11:02:33 -05:00
2020-02-20 10:07:44 +01:00
2019-07-31 01:03:16 -04: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
2018-03-12 11:59:33 -07:00
2019-08-07 09:50:35 -07:00
2019-03-29 14:47:40 -04:00
2019-10-04 11:23:59 -04:00
2019-12-16 12:47:10 +01:00
2019-12-16 12:47:10 +01:00
2020-01-31 19:02:53 -06:00
2020-01-31 19:02:53 -06:00
2017-09-19 10:08:23 -05:00
2017-10-13 14:36:02 -07:00
2019-03-29 14:47:40 -04:00
2020-02-20 10:07:44 +01:00
2020-02-16 16:04:59 -06:00
2019-03-29 14:47:40 -04:00
2019-05-03 14:06:12 -05:00
2017-10-13 14:36:02 -07:00
2017-10-13 14:36:02 -07:00
2016-10-31 10:20:04 -07:00
2019-03-29 14:47:40 -04:00
2017-01-17 22:48:01 -08:00
2019-08-27 23:59:36 -04:00
2018-03-14 16:10:32 -05:00
2017-08-27 22:17:51 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2020-02-10 08:00:55 -06:00
2020-02-10 08:00:55 -06: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
2017-08-24 11:55:10 +02:00
2019-10-14 14:09:58 +02:00
2019-12-16 11:38:16 -05:00
2019-11-12 11:02:33 -05:00
2019-01-18 15:31:31 -05:00
2019-01-30 12:23:14 -08:00