Skip to content
Snippets Groups Projects
Commit b5454b32 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Fix typo in write_key length check.

parent 5c610fb6
No related branches found
No related tags found
1 merge request!1Rewrite devkit service in python.
......@@ -245,7 +245,7 @@ class DevkitHandler(BaseHTTPRequestHandler):
length = len(post_body)
found_name = False
if length > 64 * 1024:
if length >= 64 * 1024:
print("Key length too long")
return None
if not post_body.decode().startswith('ssh-rsa'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment