mirror of
https://github.com/versity/versitygw.git
synced 2025-12-23 05:05:16 +00:00
chore: fix spelling typos
This commit is contained in:
@@ -87,13 +87,13 @@ func TestStandaloneSign(t *testing.T) {
|
|||||||
|
|
||||||
actual := req.Header.Get("Authorization")
|
actual := req.Header.Get("Authorization")
|
||||||
if e, a := c.ExpSig, actual; e != a {
|
if e, a := c.ExpSig, actual; e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
if e, a := c.OrigURI, req.URL.Path; e != a {
|
if e, a := c.OrigURI, req.URL.Path; e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
if e, a := c.EscapedURI, req.URL.EscapedPath(); e != a {
|
if e, a := c.EscapedURI, req.URL.EscapedPath(); e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,13 +127,13 @@ func TestStandaloneSign_RawPath(t *testing.T) {
|
|||||||
|
|
||||||
actual := req.Header.Get("Authorization")
|
actual := req.Header.Get("Authorization")
|
||||||
if e, a := c.ExpSig, actual; e != a {
|
if e, a := c.ExpSig, actual; e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
if e, a := c.OrigURI, req.URL.Path; e != a {
|
if e, a := c.OrigURI, req.URL.Path; e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
if e, a := c.EscapedURI, req.URL.EscapedPath(); e != a {
|
if e, a := c.EscapedURI, req.URL.EscapedPath(); e != a {
|
||||||
t.Errorf("expected %v, but recieved %v", e, a)
|
t.Errorf("expected %v, but received %v", e, a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ var (
|
|||||||
// Any newly created directory is set to provided uid/gid ownership.
|
// Any newly created directory is set to provided uid/gid ownership.
|
||||||
// If path is already a directory, MkdirAll does nothing
|
// If path is already a directory, MkdirAll does nothing
|
||||||
// and returns nil.
|
// and returns nil.
|
||||||
// Any directoy created will be set to provided uid/gid ownership
|
// Any directory created will be set to provided uid/gid ownership
|
||||||
// if doChown is true.
|
// if doChown is true.
|
||||||
func MkdirAll(path string, uid, gid int, doChown bool) error {
|
func MkdirAll(path string, uid, gid int, doChown bool) error {
|
||||||
// Fast path: if we can tell whether path is a directory or file, stop with success or error.
|
// Fast path: if we can tell whether path is a directory or file, stop with success or error.
|
||||||
|
|||||||
@@ -2524,7 +2524,7 @@ func (p *Posix) PutObjectRetention(_ context.Context, bucket, object, versionId
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch lockCfg.Mode {
|
switch lockCfg.Mode {
|
||||||
// Compliance mode can't be overriden
|
// Compliance mode can't be overridden
|
||||||
case types.ObjectLockRetentionModeCompliance:
|
case types.ObjectLockRetentionModeCompliance:
|
||||||
return s3err.GetAPIError(s3err.ErrMethodNotAllowed)
|
return s3err.GetAPIError(s3err.ErrMethodNotAllowed)
|
||||||
// To override governance mode user should have "s3:BypassGovernanceRetention" permission
|
// To override governance mode user should have "s3:BypassGovernanceRetention" permission
|
||||||
|
|||||||
Reference in New Issue
Block a user