Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
a00ce8c9
Unverified
Commit
a00ce8c9
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove dead code (#8919)
SignatureVerification#matches_time_window? is not called anywhere.
parent
2dba3131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/concerns/signature_verification.rb
+0
-10
app/controllers/concerns/signature_verification.rb
with
0 additions
and
10 deletions
+0
-10
app/controllers/concerns/signature_verification.rb
+
0
-
10
View file @
a00ce8c9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets