Add headers to webhook.

This commit is contained in:
Yang Luo
2021-12-26 20:40:13 +08:00
parent 5015bf1c7d
commit 0c665edcbc
6 changed files with 170 additions and 8 deletions

View File

@ -16,11 +16,11 @@ package object
import (
"fmt"
"github.com/casbin/casdoor/util"
"runtime"
"github.com/astaxie/beego"
"github.com/casbin/casdoor/conf"
"github.com/casbin/casdoor/util"
//_ "github.com/denisenkom/go-mssqldb" // db = mssql
_ "github.com/go-sql-driver/mysql" // db = mysql
//_ "github.com/lib/pq" // db = postgres
@ -185,4 +185,4 @@ func GetSession(owner string, offset, limit int, field, value, sortField, sortOr
session = session.Desc(util.SnakeString(sortField))
}
return session
}
}