Skip to content

Commit 5775e83

Browse files
committed
strict mode by default
1 parent d789cd5 commit 5775e83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Usage of /usr/local/bin/basic_hmac_auth:
4646
-secret-file string
4747
file containing single line with hex-encoded secret
4848
-strict
49-
require shortest possible, invariant form of encoding
49+
require shortest possible, invariant form of encoding (default true)
5050
-version
5151
show program version and exit
5252
```

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222

2323
var (
2424
bufferSize = flag.Int("buffer-size", 0, "initial buffer size for stream parsing")
25-
strict = flag.Bool("strict", false, "require shortest possible, invariant form of encoding")
25+
strict = flag.Bool("strict", true, "require shortest possible, invariant form of encoding")
2626
hexSecret = flag.String("secret", "", "hex-encoded HMAC secret value")
2727
hexSecretFile = flag.String("secret-file", "", "file containing single line with hex-encoded secret")
2828
showVersion = flag.Bool("version", false, "show program version and exit")

0 commit comments

Comments
 (0)