Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update mauth_client/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
ykitamura-mdsol and Copilot authored Dec 16, 2025
commit 0d8cf707d5ef9f5e0798b9d1a87a35e1d7f0f053
2 changes: 1 addition & 1 deletion mauth_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def decode(byte_string: bytes) -> str:
def to_rsa_format(key: str) -> str:
"""Convert a private key to RSA format with proper newlines."""

if "\n" in key:
if "\n" in key and HEADER in key and FOOTER in key:
return key

body = key.strip()
Expand Down