Skip to content

Commit 3902ce3

Browse files
committed
Close #12 - Fix redirec headers (used when sending the authnrequest)
1 parent d3eed63 commit 3902ce3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def do_GET(self):
5959
return
6060

6161
url = AuthRequest.create(**self.settings)
62-
self.send_response(301)
62+
self.send_response(302)
63+
self.send_header("Cache-Control", "no-cache, no-store")
64+
self.send_header("Pragma", "no-cache")
6365
self.send_header("Location", url)
6466
self.end_headers()
6567

0 commit comments

Comments
 (0)