lib/api_auth/request_drivers/rack.rb in api-auth-2.2.1 vs lib/api_auth/request_drivers/rack.rb in api-auth-2.3.0
- old
+ new
@@ -25,9 +25,10 @@
md5_base64digest(body)
end
def populate_content_md5
return unless %w[POST PUT].include?(@request.request_method)
+
@request.env['Content-MD5'] = calculated_md5
fetch_headers
end
def md5_mismatch?