Skip to content

Commit

Permalink
fix: use string slice for header (#601)
Browse files Browse the repository at this point in the history
Signed-off-by: zzy987 <67889264+zzy987@users.noreply.github.com>
  • Loading branch information
zzy987 authored Sep 3, 2021
1 parent 2e3ade8 commit 0f35c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dfget/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func init() {
"Filter the query parameters of the url, P2P overlay is the same one if the filtered url is same, "+
"in format of key&sign, which will filter 'key' and 'sign' query parameters")

flagSet.StringArrayP("header", "H", dfgetConfig.Header, "url header, eg: --header='Accept: *' --header='Host: abc'")
flagSet.StringSliceP("header", "H", dfgetConfig.Header, "url header, eg: --header='Accept: *' --header='Host: abc'")

flagSet.Bool("disable-back-source", dfgetConfig.DisableBackSource,
"Disable downloading directly from source when the daemon fails to download file")
Expand Down

0 comments on commit 0f35c8f

Please sign in to comment.