fix: env init (#33)

This commit is contained in:
Lakhan Samani
2021-07-28 11:53:37 +05:30
committed by GitHub
parent 0fd4f18dc1
commit ea320c2401
11 changed files with 190 additions and 188 deletions

View File

@@ -13,9 +13,6 @@ func SetCookie(gc *gin.Context, token string) {
secure := true
httpOnly := true
if !constants.IS_PROD {
secure = false
}
u, err := url.Parse(constants.SERVER_URL)
if err != nil {
log.Println("error getting server host")