mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-20 04:11:52 +00:00
Always use GET for Zope servers.
This commit is contained in:
parent
84f91c9124
commit
61138744e6
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
|||
7.8 "" (released xx.xx.2012)
|
||||
|
||||
Fixes:
|
||||
- checking: Always use GET for Zope servers since their HEAD support
|
||||
is broken.
|
||||
Closes: SF bug #3522710
|
||||
|
||||
Changes:
|
||||
- documentation: Made the --ignore-url documentation more clear.
|
||||
Patch from Charles Jones.
|
||||
|
|
|
|||
|
|
@ -280,8 +280,7 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
|
|||
mime = self.get_content_type()
|
||||
poweredby = self.getheader('X-Powered-By', u'')
|
||||
server = self.getheader('Server', u'')
|
||||
if ((mime in ('application/octet-stream', 'text/plain') and
|
||||
(poweredby.startswith('Zope') or server.startswith('Zope')))
|
||||
if (poweredby.startswith('Zope') or server.startswith('Zope')
|
||||
or ('ASP.NET' in poweredby and 'Microsoft-IIS' in server)):
|
||||
# Zope or IIS server could not get Content-Type with HEAD
|
||||
# see http://intermapper.com.dev4.silvertech.net/bogus.aspx
|
||||
|
|
|
|||
Loading…
Reference in a new issue