From 673fcd0870e17989a12986ba802c2f98bb461629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Fri, 11 Oct 2024 12:16:33 +0300 Subject: [PATCH] Exclude response, request data from result --- runner/types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runner/types.go b/runner/types.go index 7bdb3a9c..c480c06f 100644 --- a/runner/types.go +++ b/runner/types.go @@ -53,7 +53,7 @@ type Result struct { Scheme string `json:"scheme,omitempty" csv:"scheme" mapstructure:"scheme"` Error string `json:"error,omitempty" csv:"error" mapstructure:"error"` WebServer string `json:"webserver,omitempty" csv:"webserver" mapstructure:"webserver"` - ResponseBody string `json:"body,omitempty" csv:"body" mapstructure:"body"` + ResponseBody string `json:"body,omitempty" csv:"-" mapstructure:"body"` BodyPreview string `json:"body_preview,omitempty" csv:"body_preview" mapstructure:"body_preview"` ContentType string `json:"content_type,omitempty" csv:"content_type" mapstructure:"content_type"` Method string `json:"method,omitempty" csv:"method" mapstructure:"method"` @@ -64,9 +64,9 @@ type Result struct { FaviconPath string `json:"favicon_path,omitempty" csv:"favicon_path" mapstructure:"favicon_path"` FaviconURL string `json:"favicon_url,omitempty" csv:"favicon_url" mapstructure:"favicon_url"` FinalURL string `json:"final_url,omitempty" csv:"final_url" mapstructure:"final_url"` - ResponseHeaders map[string]interface{} `json:"header,omitempty" csv:"header" mapstructure:"header"` - RawHeaders string `json:"raw_header,omitempty" csv:"raw_header" mapstructure:"raw_header"` - Request string `json:"request,omitempty" csv:"request" mapstructure:"request"` + ResponseHeaders map[string]interface{} `json:"header,omitempty" csv:"-" mapstructure:"header"` + RawHeaders string `json:"raw_header,omitempty" csv:"-" mapstructure:"raw_header"` + Request string `json:"request,omitempty" csv:"-" mapstructure:"request"` ResponseTime string `json:"time,omitempty" csv:"time" mapstructure:"time"` JarmHash string `json:"jarm_hash,omitempty" csv:"jarm_hash" mapstructure:"jarm_hash"` ChainStatusCodes []int `json:"chain_status_codes,omitempty" csv:"chain_status_codes" mapstructure:"chain_status_codes"`