Commits

Martin von Löwis  committed dcbd245

Accept meta tags without http-equiv.

  • Participants
  • Parent commits d9db1b1

Comments (0)

Files changed (1)

File openid2rp.py

     def do_meta(self, attrs):
         attrs = dict(attrs)
         # Yadis 6.2.5 option 1: meta tag
-        if attrs['http-equiv'].lower() == 'x-xrds-location':
+        if attrs.get('http-equiv','').lower() == 'x-xrds-location':
             self.xrds_location = attrs['content']
 
 def discover(url):