Skip to content

Commit

Permalink
opt: comment and amz header
Browse files Browse the repository at this point in the history
  • Loading branch information
imstevez committed Sep 9, 2023
1 parent 8dbe3c7 commit bcc55bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion s3/handlers/handlers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package handlers is an implementation of s3.Handlerser
// Package handlers is an implementation of Handlerser
package handlers

import (
Expand Down
8 changes: 4 additions & 4 deletions s3/handlers/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ var defaultCorsHeaders = []string{
consts.XRequestWith,
consts.Range,
consts.UserAgent,
"Amz-Sdk-Request",
"Amz-Sdk-Invocation-Id",
consts.Cid,
consts.CidList,
"Amz-*",
"amz-*",
"X-Amz*",
"x-amz*",
"*",
consts.Cid,
consts.CidList,
}

var defaultHeaders = map[string][]string{
Expand Down
2 changes: 1 addition & 1 deletion s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func GetProviders() *providers.Providers {
}

func NewServer(cfg config.S3CompatibleAPI) *server.Server {
// lock global multiple keys read write lock
// global multiple keys read write lock
lock := ctxmu.NewDefaultMultiCtxRWMutex()

// services
Expand Down

0 comments on commit bcc55bf

Please sign in to comment.