When a response is too big, also send it via FORM encoding
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
192fb8d7bc
commit
e2a1822525
1 changed files with 2 additions and 0 deletions
|
@ -1059,6 +1059,8 @@ class OpenIDResponse(object):
|
||||||
if self.fields.isOpenID1() and \
|
if self.fields.isOpenID1() and \
|
||||||
len(self.encodeToURL()) > OPENID1_URL_LIMIT:
|
len(self.encodeToURL()) > OPENID1_URL_LIMIT:
|
||||||
return ENCODE_HTML_FORM
|
return ENCODE_HTML_FORM
|
||||||
|
elif len(self.encodeToURL()) > (6 * 1024):
|
||||||
|
return ENCODE_HTML_FORM
|
||||||
else:
|
else:
|
||||||
return ENCODE_URL
|
return ENCODE_URL
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue