diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 19:10:57 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 19:10:57 +0200 |
commit | 6f75a9001f6ba8e47c80767d8406cfeb11a79690 (patch) | |
tree | 7f988360fd5b6aefa1ddd4255926bb20025fd27f /app/lib/request.rb | |
parent | c6942a528332e99b605efa95ffa1c710324d368c (diff) | |
parent | 55880c70981bac9278e7f8584f9d4ecd78f1ba6b (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/views/stream_entries/_simple_status.html.haml - config/locales/nl.yml Deleted unused translation strings (themes) and adapted minor changes to _simple_status.html.haml
Diffstat (limited to 'app/lib/request.rb')
-rw-r--r-- | app/lib/request.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/request.rb b/app/lib/request.rb index 21bdaa700..36c211dbf 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -73,15 +73,15 @@ class Request algorithm = 'rsa-sha256' signature = Base64.strict_encode64(@keypair.sign(OpenSSL::Digest::SHA256.new, signed_string)) - "keyId=\"#{key_id}\",algorithm=\"#{algorithm}\",headers=\"#{signed_headers}\",signature=\"#{signature}\"" + "keyId=\"#{key_id}\",algorithm=\"#{algorithm}\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\"" end def signed_string - @headers.map { |key, value| "#{key.downcase}: #{value}" }.join("\n") + signed_headers.map { |key, value| "#{key.downcase}: #{value}" }.join("\n") end def signed_headers - @headers.keys.join(' ').downcase + @headers.without('User-Agent', 'Accept-Encoding') end def key_id |