]> source.dussan.org Git - gitea.git/commit
Use common sessioner for API and web routes (#18114)
authorzeripath <art27@cantab.net>
Tue, 28 Dec 2021 22:15:01 +0000 (22:15 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Dec 2021 22:15:01 +0000 (22:15 +0000)
commitde3216ee5590636747ad3a7cd8b4c1a8837b5b40
treeaf14b1be3169bf580650e70a58c2868a2d55fcb6
parent353d88a42e2bfce9ba8923ad2ef3f2601ab65286
Use common sessioner for API and web routes (#18114)

* Use common sessioner for API and web routes

Since the regenerate session ID PR some users of the memory session provider have been
reporting difficulties with getting API results.

I am uncertain as to why this is happening - but I think that the sessioner being
created twice may be a potential cause for this. Therefore this PR attempts to move
this out to a common sessioner as it is in 1.16.

Fix #18070

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update routers/init.go
routers/api/v1/api.go
routers/init.go
routers/web/web.go