mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 08:33:10 +00:00
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:
parent
f344b75c8e
commit
12b726b4df
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue