Skip to content

Commit 08dbd56

Browse files
committed
redir debug
1 parent 6a3b63c commit 08dbd56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fasthtml/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def logout(session):
202202

203203
def redir_login(self, session): return RedirectResponse(self.login_path, status_code=303)
204204
def redir_url(self, req):
205-
scheme = 'http' if url_match(req.url,self.http_patterns) or not self.https else 'https'
205+
scheme = 'http' if url_match(req,self.http_patterns) or not self.https else 'https'
206206
return redir_url(req, self.redir_path, scheme)
207207

208208
def login_link(self, req, scope=None, state=None): return self.cli.login_link(self.redir_url(req), scope=scope, state=state)

nbs/api/08_oauth.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
"\n",
563563
" def redir_login(self, session): return RedirectResponse(self.login_path, status_code=303)\n",
564564
" def redir_url(self, req):\n",
565-
" scheme = 'http' if url_match(req.url,self.http_patterns) or not self.https else 'https'\n",
565+
" scheme = 'http' if url_match(req,self.http_patterns) or not self.https else 'https'\n",
566566
" return redir_url(req, self.redir_path, scheme)\n",
567567
"\n",
568568
" def login_link(self, req, scope=None, state=None): return self.cli.login_link(self.redir_url(req), scope=scope, state=state)\n",

0 commit comments

Comments
 (0)