Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for della (0.14 sec)

  1. cmd/storage-rest-server.go

    	requestTime, err := time.Parse(time.RFC3339, requestTimeStr)
    	if err != nil {
    		return errMalformedAuth
    	}
    	utcNow := UTCNow()
    	delta := requestTime.Sub(utcNow)
    	if delta < 0 {
    		delta *= -1
    	}
    	if delta > DefaultSkewTime {
    		return errSkewedAuthTime
    	}
    
    	return nil
    }
    
    // IsAuthValid - To authenticate and verify the time difference.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
Back to top