mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-01 05:30:26 +00:00
Lower the MIME content-type info from HTTP headers befure using it
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3816 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
683433856b
commit
ff41aa8d9f
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ def get_content_type (headers):
|
|||
if ";" in ptype:
|
||||
# split off not needed extension info
|
||||
ptype = ptype.split(';')[0]
|
||||
return ptype.strip()
|
||||
return ptype.strip().lower()
|
||||
|
||||
|
||||
def get_content_encoding (headers):
|
||||
|
|
|
|||
Loading…
Reference in a new issue