Closed OctaYann closed 11 months ago
Ovh api now send a 204 no content response when you call /domain/zone/{zoneName}/refresh endpoint.
Api.php\decodeResponse method throw a error by default when it fail to decode json, and so when you pass empty string from no content reponse
ruturn empty array when response has code 204 or body length is 0
All tests are passing, hope this can be merged fast.
Thanks !
I'm referencing to this issue #140
Hi there, Thank you for your contribution!
This ended up handled in #142 (returning null instead of [], with tests). Therefore, I'm closing this one.
null
[]
Context:
Ovh api now send a 204 no content response when you call /domain/zone/{zoneName}/refresh endpoint.
Problem:
Api.php\decodeResponse method throw a error by default when it fail to decode json, and so when you pass empty string from no content reponse
Proposal:
ruturn empty array when response has code 204 or body length is 0
All tests are passing, hope this can be merged fast.
Thanks !