mirror of https://github.com/daffainfo/nuclei.git
Fixed matcher type integer issue
parent
f74ff3fc49
commit
66dacccfb4
|
@ -106,10 +106,10 @@ func (holder *MatcherTypeHolder) UnmarshalYAML(unmarshal func(interface{}) error
|
|||
return nil
|
||||
}
|
||||
|
||||
func (holder *MatcherTypeHolder) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(holder.MatcherType)
|
||||
func (holder MatcherTypeHolder) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(holder.MatcherType.String())
|
||||
}
|
||||
|
||||
func (holder MatcherTypeHolder) MarshalYAML() (interface{}, error) {
|
||||
return holder.MatcherType, nil
|
||||
return holder.MatcherType.String(), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue