🐛 Little strings fixes

This commit is contained in:
Maxim Lebedev 2022-02-26 04:50:22 +05:00
parent 9f766db302
commit c677ba1e22
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ func (h *RequestHandler) Register(r *router.Router) {
CookieDomain: h.config.Server.Domain,
CookieName: "__Secure-csrf",
CookiePath: "",
TokenLookup: "form:_csrf",
TokenLookup: "param:_csrf",
TokenLength: 0,
CookieSecure: true,
CookieHTTPOnly: true,

View File

@ -27,7 +27,7 @@ func Open(tb testing.TB) (*sqlx.DB, sqlmock.Sqlmock, func()) {
tb.Fatal(err)
}
xdb := sqlx.NewDb(db, "sqlite3")
xdb := sqlx.NewDb(db, "sqlite")
if err = xdb.Ping(); err != nil {
_ = db.Close()