mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 21:05:15 +00:00
Fix mirror auth
This commit is contained in:
parent
1a28bc744a
commit
5bd4b7b0c7
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class WakatimeMirror < ApplicationRecord
|
|||
def post_heartbeats(payload)
|
||||
HTTP.timeout(connect: 5, read: 30, write: 10)
|
||||
.headers(
|
||||
"Authorization" => "Basic #{Base64.strict_encode64("#{encrypted_api_key}:")}",
|
||||
"Authorization" => "Basic #{Base64.strict_encode64(encrypted_api_key)}",
|
||||
"Content-Type" => "application/json"
|
||||
)
|
||||
.post("#{endpoint_url}/users/current/heartbeats.bulk", json: payload)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue