WAMP: fix secret upload
authorEdouard Tisserant <edouard@beremiz.fr>
Fri, 24 Jan 2025 15:39:06 +0100 (7 weeks ago)
changeset 4094 bf2b89396fef
parent 4093 649f91dc4db3
child 4095 5d86ede7384a
WAMP: fix secret upload
runtime/WampClient.py
--- a/runtime/WampClient.py	Fri Jan 24 11:33:18 2025 +0100
+++ b/runtime/WampClient.py	Fri Jan 24 15:39:06 2025 +0100
@@ -241,7 +241,7 @@
 
 
 def SetWampSecret(wampSecret):
-    with open(os.path.realpath(_WampSecret), 'w') as f:
+    with open(os.path.realpath(_WampSecret), 'wb') as f:
         f.write(wampSecret)