headers should be a dictionary and not a list of tupled.

This commit is contained in:
Roland Hedberg
2013-08-28 10:09:53 +02:00
parent 1580bec950
commit af6c32e005

View File

@@ -265,8 +265,8 @@ class Conversation():
info["data"] = urllib.urlencode({"SAMLResponse": resp,
"RelayState": self.relay_state})
info["method"] = "POST"
info["headers"] = [('Content-type',
'application/x-www-form-urlencoded')]
info["headers"] = {
'Content-type': 'application/x-www-form-urlencoded'}
self.last_response = self.instance.send(**info)
def do_flow(self, flow):