isAmzHeader returns true if header is a x-amz-meta-* or x-amz-acl header.
(headerKey string)
| 553 | |
| 554 | // isAmzHeader returns true if header is a x-amz-meta-* or x-amz-acl header. |
| 555 | func isAmzHeader(headerKey string) bool { |
| 556 | key := strings.ToLower(headerKey) |
| 557 | |
| 558 | return strings.HasPrefix(key, "x-amz-meta-") || strings.HasPrefix(key, "x-amz-grant-") || key == "x-amz-acl" || isSSEHeader(headerKey) || strings.HasPrefix(key, "x-amz-checksum-") |
| 559 | } |
| 560 | |
| 561 | // isMinioHeader returns true if header is x-minio- header. |
| 562 | func isMinioHeader(headerKey string) bool { |