Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setObjectHeaders (0.08 sec)

  1. cmd/s3-zip-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	} else {
    		rc = io.NopCloser(bytes.NewReader([]byte{}))
    	}
    
    	defer rc.Close()
    
    	if err = setObjectHeaders(ctx, w, fileObjInfo, nil, opts); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	// s3zip does not allow ranges
    	w.Header().Del(xhttp.AcceptRanges)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top