Method: ApiAuth::RequestDrivers::RestClientRequest#calculated_hash
- Defined in:
- lib/api_auth/request_drivers/rest_client.rb
#calculated_hash ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/api_auth/request_drivers/rest_client.rb', line 21 def calculated_hash if @request.payload body = @request.payload.read @request.payload.instance_variable_get(:@stream).seek(0) else body = '' end sha256_base64digest(body) end |