Remove dead code (#8919)

SignatureVerification#matches_time_window? is not called anywhere.
lolsob-rspec
Eugen Rochko 2018-10-08 04:48:54 +02:00 committed by GitHub
parent ea57aca5e1
commit 65d1a2d10a
1 changed files with 0 additions and 10 deletions

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