Rolled back on form_post vs post

This commit is contained in:
Roland Hedberg 2015-11-16 11:14:47 +01:00
parent ad8e8cb1ee
commit 0111b9bf1e

View File

@ -215,16 +215,16 @@ class Entity(HTTPBase):
if binding == BINDING_HTTP_POST:
logger.info("HTTP POST")
if self.entity_type == 'sp':
info = self.use_http_post(msg_str, destination, relay_state,
typ)
info["url"] = destination
info["method"] = "POST"
else:
info = self.use_http_form_post(msg_str, destination,
relay_state, typ)
info["url"] = destination
info["method"] = "GET"
# if self.entity_type == 'sp':
# info = self.use_http_post(msg_str, destination, relay_state,
# typ)
# info["url"] = destination
# info["method"] = "POST"
# else:
info = self.use_http_form_post(msg_str, destination,
relay_state, typ)
info["url"] = destination
info["method"] = "GET"
elif binding == BINDING_HTTP_REDIRECT:
logger.info("HTTP REDIRECT")
info = self.use_http_get(msg_str, destination, relay_state, typ,