Skip to content

Commit

Permalink
fix(gin): fix crash with gin if there are no params (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
slayerjain authored Feb 19, 2022
1 parent 239f6b7 commit a69e956
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integrations/kgin/v1/gin-v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ func urlParamsGin(c *gin.Context, k *keploy.Keploy) map[string]string {
if err != nil {
k.Log.Error("", zap.Error(err))
}
var params map[string]string = make(map[string]string)
var params = make(map[string]string)

if gi == nil {
return params
}

for _, k := range gi.([]interface{}) {
j := k.(map[string]interface{})
Expand Down

0 comments on commit a69e956

Please sign in to comment.