Merge branch 'main' into fix/webhook_bug_389
This commit is contained in:
@@ -21,7 +21,7 @@ func PlaygroundHandler() gin.HandlerFunc {
|
||||
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
|
||||
if err != nil {
|
||||
log.Debug("error while getting disable playground value")
|
||||
return
|
||||
disablePlayground = false
|
||||
}
|
||||
|
||||
// if env set to false, then check if logged in as super admin, if logged in then return graphql else 401 error
|
||||
|
@@ -83,10 +83,8 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
||||
if webhook.Headers != nil {
|
||||
for key, val := range webhook.Headers {
|
||||
req.Header.Set(key, val.(string))
|
||||
}
|
||||
for key, val := range webhook.Headers {
|
||||
req.Header.Set(key, val.(string))
|
||||
}
|
||||
|
||||
client := &http.Client{Timeout: time.Second * 30}
|
||||
|
Reference in New Issue
Block a user