Skip to content

Commit

Permalink
fix: Backblaze auth header format
Browse files Browse the repository at this point in the history
Backblaze basic auth header had an invalid colon. Removed.
  • Loading branch information
gbdlin committed Aug 13, 2024
1 parent 0d709fd commit f136014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_store/cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def _b2_upload(filename: str, binary: "bytes", mime_type: str = "b2/x-auto
auth_str = f"{getenv('B2_APP_KEY_ID')}:{getenv('B2_APP_KEY')}".encode("utf-8")
async with web.get(
"https://api.backblazeb2.com/b2api/v2/b2_authorize_account",
headers={"Authorization": f"Basic: {b64encode(auth_str).decode('utf-8')}"},
headers={"Authorization": f"Basic {b64encode(auth_str).decode('utf-8')}"},
) as res:
if not res.status == 200:
getLogger().error(f"B2 LOGIN ERROR {await res.read()!r}")
Expand Down

0 comments on commit f136014

Please sign in to comment.