mirror of https://github.com/daffainfo/nuclei.git
Fixed panic with http status codes
parent
31094ab299
commit
a3029142f6
|
@ -24,7 +24,11 @@ func (r *Request) Match(data map[string]interface{}, matcher *matchers.Matcher)
|
||||||
if !ok {
|
if !ok {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return matcher.Result(matcher.MatchStatusCode(statusCode.(int)))
|
status, ok := statusCode.(int)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return matcher.Result(matcher.MatchStatusCode(status))
|
||||||
case matchers.SizeMatcher:
|
case matchers.SizeMatcher:
|
||||||
return matcher.Result(matcher.MatchSize(len(item)))
|
return matcher.Result(matcher.MatchSize(len(item)))
|
||||||
case matchers.WordsMatcher:
|
case matchers.WordsMatcher:
|
||||||
|
|
Loading…
Reference in New Issue