- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AddChecksumHeader (0.08 sec)
-
internal/hash/checksum_test.go
m[xhttp.AmzChecksumType] = xhttp.AmzChecksumTypeFullObject } else { m[xhttp.AmzChecksumType] = xhttp.AmzChecksumTypeComposite } w := httptest.NewRecorder() AddChecksumHeader(w, m) gotChksm, err := GetContentChecksum(w.Result().Header) if tt.wantErr { if err == nil { t.Fatalf("Expected error for %s, got none", tt.name) } return } if err != nil {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 7.1K bytes - Viewed (0) -
internal/hash/checksum.go
val := r.Trailer.Get(t.Key()) if val != "" { w.Header().Set(t.Key(), val) } return } w.Header().Set(t.Key(), s) } // AddChecksumHeader will transfer any checksum value that has been checked. func AddChecksumHeader(w http.ResponseWriter, c map[string]string) { for k, v := range c { if k == xhttp.AmzChecksumType { w.Header().Set(xhttp.AmzChecksumType, v) continue }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 18.3K bytes - Viewed (0) -
cmd/object-handlers-common.go
if lc, err := globalLifecycleSys.Get(objInfo.Bucket); err == nil && !del { lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts()) } } cs, _ := objInfo.decryptChecksums(0, h) hash.AddChecksumHeader(w, cs) } func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toDel []ObjectToDelete, lcEvent []lifecycle.Event) { for remaining := toDel; len(remaining) > 0; toDel = remaining {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jul 23 12:36:06 UTC 2025 - 15.2K bytes - Viewed (0) -
cmd/bucket-handlers.go
redirectURL.RawQuery = v.Encode() writeRedirectSeeOther(w, redirectURL.String()) return } // Add checksum header. if checksum != nil && checksum.Valid() { hash.AddChecksumHeader(w, checksum.AsMap()) } // Decide what http response to send depending on success_action_status parameter switch successStatus { case "201": resp := encodeResponse(PostResponse{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 63.9K bytes - Viewed (0) -
cmd/object-handlers.go
} if r.Header.Get(xhttp.AmzChecksumMode) == "ENABLED" && rs == nil { // AWS S3 silently drops checksums on range requests. cs, _ := objInfo.decryptChecksums(opts.PartNumber, r.Header) hash.AddChecksumHeader(w, cs) } if err = setObjectHeaders(ctx, w, objInfo, rs, opts); err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // Set Parts Count Header
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 120.6K bytes - Viewed (0)