File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -370,8 +370,8 @@ var (
370370 Value : 80 * time .Second ,
371371 },
372372 & cli.StringSliceFlag {
373- Name : "headers " ,
374- Usage : "Custom SIP headers in format 'Key:Value' (can be specified multiple times)" ,
373+ Name : "header " ,
374+ Usage : "Custom SIP header in format 'Key:Value' (can be specified multiple times)" ,
375375 },
376376 },
377377 },
@@ -1159,8 +1159,8 @@ func createSIPParticipant(ctx context.Context, cmd *cli.Command) error {
11591159 req .WaitUntilAnswered = true
11601160 }
11611161
1162- // Parse headers from StringSliceFlag
1163- if headers := cmd .StringSlice ("headers " ); len (headers ) > 0 {
1162+ // Parse headers from repeatable "header" flag
1163+ if headers := cmd .StringSlice ("header " ); len (headers ) > 0 {
11641164 if req .Headers == nil {
11651165 req .Headers = make (map [string ]string )
11661166 }
You can’t perform that action at this time.
0 commit comments