Drop dashes in http header matcher attributes; other changes from code review

This commit is contained in:
Robert van Gent 2019-05-31 09:55:48 -07:00 committed by Bjørn Erik Pedersen
parent 1384d77a04
commit b0f536fb27
4 changed files with 70 additions and 50 deletions

View file

@ -48,15 +48,15 @@ type matcher struct {
// CacheControl specifies caching attributes to use when serving the blob.
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
CacheControl string `mapstructure:"Cache-Control"`
CacheControl string
// ContentEncoding specifies the encoding used for the blob's content, if any.
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
ContentEncoding string `mapstructure:"Content-Encoding"`
ContentEncoding string
// ContentType specifies the MIME type of the blob being written.
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
ContentType string `mapstructure:"Content-Type"`
ContentType string
// Gzip determines whether the file should be gzipped before upload.
// If so, the ContentEncoding field will automatically be set to "gzip".