Skip to content

Commit 2fd380a

Browse files
authored
Make ChainInStdout option available when using httpx as a library (#1855)
make ChainInStdout option available when using httpx as a library
1 parent 8abc972 commit 2fd380a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runner/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ type Options struct {
218218
ResponseHeadersInStdout bool
219219
ResponseInStdout bool
220220
Base64ResponseInStdout bool
221-
chainInStdout bool
221+
ChainInStdout bool
222222
FollowHostRedirects bool
223223
MaxRedirects int
224224
OutputMethod bool
@@ -445,7 +445,7 @@ func ParseOptions() *Options {
445445
flagSet.BoolVarP(&options.ResponseHeadersInStdout, "include-response-header", "irh", false, "include http response (headers) in JSON output (-json only)"),
446446
flagSet.BoolVarP(&options.ResponseInStdout, "include-response", "irr", false, "include http request/response (headers + body) in JSON output (-json only)"),
447447
flagSet.BoolVarP(&options.Base64ResponseInStdout, "include-response-base64", "irrb", false, "include base64 encoded http request/response in JSON output (-json only)"),
448-
flagSet.BoolVar(&options.chainInStdout, "include-chain", false, "include redirect http chain in JSON output (-json only)"),
448+
flagSet.BoolVar(&options.ChainInStdout, "include-chain", false, "include redirect http chain in JSON output (-json only)"),
449449
flagSet.BoolVar(&options.StoreChain, "store-chain", false, "include http redirect chain in responses (-sr only)"),
450450
flagSet.BoolVarP(&options.StoreVisionReconClusters, "store-vision-recon-cluster", "svrc", false, "include visual recon clusters (-ss and -sr only)"),
451451
flagSet.StringVarP(&options.Protocol, "protocol", "pr", "", "protocol to use (unknown, http11)"),

runner/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func New(options *Options) (*Runner, error) {
251251
scanopts.OutputWithNoColor = options.NoColor
252252
scanopts.ResponseInStdout = options.ResponseInStdout
253253
scanopts.Base64ResponseInStdout = options.Base64ResponseInStdout
254-
scanopts.ChainInStdout = options.chainInStdout
254+
scanopts.ChainInStdout = options.ChainInStdout
255255
scanopts.OutputWebSocket = options.OutputWebSocket
256256
scanopts.TLSProbe = options.TLSProbe
257257
scanopts.CSPProbe = options.CSPProbe

0 commit comments

Comments
 (0)