🐛 Little strings fixes
This commit is contained in:
parent
9f766db302
commit
c677ba1e22
|
@ -143,7 +143,7 @@ func (h *RequestHandler) Register(r *router.Router) {
|
||||||
CookieDomain: h.config.Server.Domain,
|
CookieDomain: h.config.Server.Domain,
|
||||||
CookieName: "__Secure-csrf",
|
CookieName: "__Secure-csrf",
|
||||||
CookiePath: "",
|
CookiePath: "",
|
||||||
TokenLookup: "form:_csrf",
|
TokenLookup: "param:_csrf",
|
||||||
TokenLength: 0,
|
TokenLength: 0,
|
||||||
CookieSecure: true,
|
CookieSecure: true,
|
||||||
CookieHTTPOnly: true,
|
CookieHTTPOnly: true,
|
||||||
|
|
|
@ -27,7 +27,7 @@ func Open(tb testing.TB) (*sqlx.DB, sqlmock.Sqlmock, func()) {
|
||||||
tb.Fatal(err)
|
tb.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
xdb := sqlx.NewDb(db, "sqlite3")
|
xdb := sqlx.NewDb(db, "sqlite")
|
||||||
if err = xdb.Ping(); err != nil {
|
if err = xdb.Ping(); err != nil {
|
||||||
_ = db.Close()
|
_ = db.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user