Skip to content
Snippets Groups Projects
Unverified Commit a00ce8c9 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Remove dead code (#8919)

SignatureVerification#matches_time_window? is not called anywhere.
parent 2dba3131
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment