diff --git a/landez/sources.py b/landez/sources.py index 307691a..b9995cb 100644 --- a/landez/sources.py +++ b/landez/sources.py @@ -229,7 +229,7 @@ def tile(self, z, x, y): try: logger.debug(_("Download '%s'") % url) request = requests.get(url, headers=self.headers) - assert request.headers == self.wmsParams['format'], "Invalid WMS response type : %s" % self.headers + assert request.headers['Content-Type'] == self.wmsParams['format'], "Invalid WMS response type : %s" % request.headers['Content-Type'] return request.content except (AssertionError, IOError): raise ExtractionError