Browse Source

Remove dead code (#8919)

SignatureVerification#matches_time_window? is not called anywhere.
master
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
a00ce8c92c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      app/controllers/concerns/signature_verification.rb

+ 0
- 10
app/controllers/concerns/signature_verification.rb View File

@@ -87,16 +87,6 @@ module SignatureVerification
end.join("\n")
end

def matches_time_window?
begin
time_sent = DateTime.httpdate(request.headers['Date'])
rescue ArgumentError
return false
end

(Time.now.utc - time_sent).abs <= 30
end

def body_digest
"SHA-256=#{Digest::SHA256.base64digest(request_body)}"
end


Loading…
Cancel
Save