You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/vendor/github.com/qiniu/go-sdk/v7/conf/conf.go

24 lines
578 B

package conf
import (
"os"
"strings"
)
const Version = "7.17.0"
const (
CONTENT_TYPE_JSON = "application/json"
CONTENT_TYPE_FORM = "application/x-www-form-urlencoded"
CONTENT_TYPE_OCTET = "application/octet-stream"
CONTENT_TYPE_MULTIPART = "multipart/form-data"
disableQiniuTimestampSignatureEnvKey = "DISABLE_QINIU_TIMESTAMP_SIGNATURE"
)
func IsDisableQiniuTimestampSignature() bool {
value := os.Getenv(disableQiniuTimestampSignatureEnvKey)
value = strings.ToLower(value)
return value == "true" || value == "yes" || value == "y" || value == "1"
}