We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54501a commit 41cc4b7Copy full SHA for 41cc4b7
age_plugin_fido2_hmac/ipc.py
@@ -21,11 +21,16 @@ def send_command(
21
22
# make sure to respect the max column size
23
max_size = 64
24
+ add_trailing_newline = len(data_encoded) > 0 and (len(data_encoded) % max_size) == 0
25
data_encoded = '\n'.join([
26
data_encoded[i:i+max_size]
27
for i in range(0, len(data_encoded), max_size)
28
])
29
30
+ if add_trailing_newline:
31
+ # important: if the body size is exactly the max size, a newline needs to be added
32
+ data_encoded += '\n'
33
+
34
message = '-> %s%s%s\n' % (
35
command,
36
' %s' % (' '.join(metadata)) if len(metadata) > 0 else '',
0 commit comments