Always use GET for Zope servers.

This commit is contained in:
Bastian Kleineidam 2012-05-08 20:47:47 +02:00
parent 84f91c9124
commit 61138744e6
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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