strip content type mime

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2379 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-03-09 13:33:20 +00:00
parent f344b75c8e
commit 12b726b4df

View file

@ -589,8 +589,9 @@ class HttpUrl (urlbase.UrlBase, proxysupport.ProxySupport):
"""
ptype = self.headers.get('Content-Type', 'application/octet-stream')
if ";" in ptype:
# split off not needed extension info
ptype = ptype.split(';')[0]
return ptype
return ptype.strip()
def is_parseable (self):
"""