mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 23:25:26 +00:00
output interface => string
This commit is contained in:
parent
4390a59c48
commit
c154a738ea
@ -1,6 +1,7 @@
|
|||||||
package executer
|
package executer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httputil"
|
"net/http/httputil"
|
||||||
"strings"
|
"strings"
|
||||||
@ -119,9 +120,8 @@ func (e *HTTPExecuter) writeOutputHTTP(req *requests.HTTPRequest, resp *http.Res
|
|||||||
builder.WriteString(" [")
|
builder.WriteString(" [")
|
||||||
|
|
||||||
var metas []string
|
var metas []string
|
||||||
|
|
||||||
for name, value := range req.Meta {
|
for name, value := range req.Meta {
|
||||||
metas = append(metas, colorizer.Colorizer.BrightYellow(name).Bold().String()+"="+colorizer.Colorizer.BrightYellow(value.(string)).String())
|
metas = append(metas, colorizer.Colorizer.BrightYellow(name).Bold().String()+"="+colorizer.Colorizer.BrightYellow(fmt.Sprint(value)).String())
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.WriteString(strings.Join(metas, ","))
|
builder.WriteString(strings.Join(metas, ","))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user