Skip to content

Commit

Permalink
Update src/linkplay/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Vanloo <[email protected]>
  • Loading branch information
daniel-simpson and dukeofphilberg authored Aug 12, 2024
1 parent a2f6291 commit ad7a6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkplay/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_unverified_context() -> ssl.SSLContext:
os.makedirs(dirs.user_data_dir, exist_ok=True)

if not os.path.isfile(mtls_certificate_path):
with open(mtls_certificate_path, "w") as file:
with open(mtls_certificate_path, "w", encoding="utf-8") as file:
file.write(MTLS_CERTIFICATE_CONTENTS)

sslcontext: ssl.SSLContext = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH)
Expand Down

0 comments on commit ad7a6ed

Please sign in to comment.