mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add session validation tool
This commit is contained in:
parent
607765c463
commit
206622ea38
2 changed files with 137 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ proc setApiProxy*(url: string) =
|
|||
if "http" notin apiProxy:
|
||||
apiProxy = "http://" & apiProxy
|
||||
|
||||
proc toUrl(req: ApiReq; sessionKind: SessionKind): Uri =
|
||||
proc toUrl*(req: ApiReq; sessionKind: SessionKind): Uri =
|
||||
let url = case sessionKind
|
||||
of oauth: req.oauth
|
||||
of cookie: req.cookie
|
||||
|
|
|
|||
Loading…
Reference in a new issue