TPE-508 Support application/xml MIME type 90/165190/2 release-20180330
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 27 Dec 2017 04:27:50 +0000 (13:27 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 27 Dec 2017 05:49:56 +0000 (14:49 +0900)
Change-Id: I666a34b6941bcf312f9231e6f1915bbaeacf889d

snapdiff/repo.py

index 4a57a3117e1a3118efdc992ea58ea15ae00a6ed8..93aad7a8f64211624fc7f5a17c0986744298b00f 100644 (file)
@@ -40,7 +40,7 @@ def _download(url):
             if response.headers['content-type'] == 'application/x-gzip':
                 gzf = gzip.GzipFile(fileobj=StringIO(response.content))
                 return gzf.read()
-            elif response.headers['content-type'] == 'text/xml':
+            elif response.headers['content-type'] == 'text/xml' or response.headers['content-type'] == 'application/xml':
                 return response.content
     else:
         # if url is a local path