Skip to content

Commit c1fab71

Browse files
Merge pull request #762 from omizrahi99/master
Minor bug fix to metadata function in example IdP
2 parents 569c64f + 082f8ed commit c1fab71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/idp2/idp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def metadata(environ, start_response):
999999
args.sign,
10001000
)
10011001
start_response("200 OK", [("Content-Type", "text/xml")])
1002-
return metadata
1002+
return [metadata]
10031003
except Exception as ex:
10041004
logger.error("An error occured while creating metadata: %s", ex.message)
10051005
return not_found(environ, start_response)
@@ -1041,7 +1041,7 @@ def application(environ, start_response):
10411041

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

1044-
if path == "metadata":
1044+
if path == "idp.xml":
10451045
return metadata(environ, start_response)
10461046

10471047
kaka = environ.get("HTTP_COOKIE", None)

0 commit comments

Comments
 (0)