Skip to content

Commit

Permalink
Merge pull request IdentityPython#762 from omizrahi99/master
Browse files Browse the repository at this point in the history
Minor bug fix to metadata function in example IdP
  • Loading branch information
c00kiemon5ter authored Mar 7, 2021
2 parents 569c64f + 082f8ed commit c1fab71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/idp2/idp.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ def metadata(environ, start_response):
args.sign,
)
start_response("200 OK", [("Content-Type", "text/xml")])
return metadata
return [metadata]
except Exception as ex:
logger.error("An error occured while creating metadata: %s", ex.message)
return not_found(environ, start_response)
Expand Down Expand Up @@ -1041,7 +1041,7 @@ def application(environ, start_response):

path = environ.get("PATH_INFO", "").lstrip("/")

if path == "metadata":
if path == "idp.xml":
return metadata(environ, start_response)

kaka = environ.get("HTTP_COOKIE", None)
Expand Down

0 comments on commit c1fab71

Please sign in to comment.