mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
fix: use binary write for reg files
This commit is contained in:
@@ -168,7 +168,7 @@ class HTTP(DataBackend):
|
|||||||
r = requests.get(self._get_url(), params={"path": path, "as_string": True}, stream=True)
|
r = requests.get(self._get_url(), params={"path": path, "as_string": True}, stream=True)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
|
||||||
if path.endswith(".reg") or path.endswith(".txt"):
|
if path.endswith(".txt"):
|
||||||
TYPE = "w"
|
TYPE = "w"
|
||||||
else:
|
else:
|
||||||
TYPE = "wb"
|
TYPE = "wb"
|
||||||
|
|||||||
Reference in New Issue
Block a user