From: hyokeun Date: Wed, 27 Dec 2017 04:27:50 +0000 (+0900) Subject: TPE-508 Support application/xml MIME type X-Git-Tag: submit/devel/20190730.075508~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=897e1a9ad4b56826f0e8e545e3042d4b6e2c9935;p=services%2Fpython-snapdiff.git TPE-508 Support application/xml MIME type Change-Id: I666a34b6941bcf312f9231e6f1915bbaeacf889d --- diff --git a/snapdiff/repo.py b/snapdiff/repo.py index 4a57a31..93aad7a 100644 --- a/snapdiff/repo.py +++ b/snapdiff/repo.py @@ -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