File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import (
88)
99
1010const (
11- hostAddrUsage = "address and port to run server "
11+ hostAddrUsage = "base URL of target address "
1212 logLevellUsage = "log level"
1313 storeIntervalUsage = "store interval in seconds (zero for sync)"
14- fileStoragePathUsage = "file storage path "
14+ fileStoragePathUsage = "path to persistent file storage"
1515 restoreUsage = "load data from storage"
16- databaseDSNUsage = "DB connection address "
17- secretKeyUsage = "encryption key"
16+ databaseDSNUsage = "connection string to database "
17+ secretKeyUsage = "sha256 key for hashing "
1818)
1919
2020const (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func (c *compressWriter) Write(p []byte) (int, error) {
3636}
3737
3838func (c * compressWriter ) WriteHeader (statusCode int ) {
39- if statusCode < 300 && c .compressibleContent () {
39+ if c .compressibleContent () {
4040 c .w .Header ().Set ("Content-Encoding" , "gzip" )
4141 }
4242 c .w .WriteHeader (statusCode )
You can’t perform that action at this time.
0 commit comments