cmfcmf/OpenWeatherMap-PHP-API

OWMNotFoundException never thrown

robjuz opened this issue · 0 comments

The response is a xml, but the check is for json. Therefore the OWMNotFoundException is never thrown.

if ($result === "{\"message\":\"not found\"}\n" && $response->getStatusCode() === 404) {