Skip to content

Commit

Permalink
bearer: Add not present condition for content-type
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Aug 15, 2024
1 parent 8299f9e commit be5e376
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bearer/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (b *Generator) NewBearer(email string, currentEpoch uint64, msPerEpoch int6
rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "text/html")
rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "text/htmlh")
rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "")
rec.AddFilter(eacl.HeaderFromObject, eacl.MatchNotPresent, object.AttributeContentType, "")
rec.AddObjectPayloadLengthFilter(eacl.MatchNumLE, b.config.MaxObjectSize)

maxExpirationEpoch := strconv.FormatUint(currentEpoch+b.config.LifeTime+epochs, 10)
Expand Down

0 comments on commit be5e376

Please sign in to comment.