Some times CONTENT_LENGTH are given as ''

This commit is contained in:
Roland Hedberg
2010-09-18 20:20:28 +02:00
parent 5bbe63bd38
commit 16b931d2b3

View File

@@ -267,10 +267,10 @@ class SAML2Plugin(FormPluginBase):
#### IIdentifier ####
def identify(self, environ):
self.log = environ.get('repoze.who.logger','')
self.log = environ.get('repoze.who.logger', '')
self.saml_client.log = self.log
if "CONTENT_LENGTH" not in environ:
if "CONTENT_LENGTH" not in environ or not environ["CONTENT_LENGTH"]:
if self.debug:
self.log and self.log.info('[identify] get or empty post')
return {}