Commit Graph

4 Commits (27c34dd011cceb8232d1c3307f87b53a147c75c3)

Author SHA1 Message Date
6543 54e9ee37a7
format with gofumpt ()
* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
Naohisa Murakami 1426601cf7
Use index of the supported tags to choose user lang ()
Fix .

The previous implementation used the first return value of matcher.Match, which is the chosen language tag but may contain extensions such as de-DE-u-rg-chzzzz.

As mentioned in the documentation of language package, matcher.Match also returns the index of the supported tags, so I think it is better to use it rather than manipulate the returned language tag.
zeripath 9b261f52f0
Add SameSite setting for cookies ()
Add SameSite setting for cookies and rationalise the cookie setting code. Switches SameSite to Lax by default. 

There is a possible future extension of differentiating which cookies could be set at Strict by default but that is for a future PR.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao 5e20fd6dbf
Move middlewares to web/middleware ()
Co-authored-by: 6543 <6543@obermui.de>