Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for verifyError (0.09 sec)

  1. cmd/server_test.go

    	// assert the http response status code.
    	verifyError(c, response, "AccessDenied", "Access Denied.", http.StatusForbidden)
    
    	// initiate anonymous HTTP request to fetch the object which does exist. We need to return AccessDenied.
    	response, err = s.client.Get(getGetObjectURL(s.endPoint, bucketName, objectName))
    	c.Assert(err, nil)
    	// assert the http response status code.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  2. internal/hash/reader.go

    					Want: r.contentHash.Encoded,
    					Got:  base64.StdEncoding.EncodeToString(sum),
    				}
    				return n, err
    			}
    		}
    	}
    	if err != nil && err != io.EOF {
    		if v, ok := err.(etag.VerifyError); ok {
    			return n, BadDigest{
    				ExpectedMD5:   v.Expected.String(),
    				CalculatedMD5: v.Computed.String(),
    			}
    		}
    	}
    	return n, err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top