From 9ee049e386a48b2075247cc054205dbe029a11ae Mon Sep 17 00:00:00 2001
From: Jeremy Whiting <jeremy.whiting@collabora.com>
Date: Mon, 28 Mar 2022 10:20:36 -0600
Subject: [PATCH] Check for "ssh-rsa " since the space is needed.

---
 src/steamos-devkit-service.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/steamos-devkit-service.py b/src/steamos-devkit-service.py
index 7bdfbd4..306ad38 100644
--- a/src/steamos-devkit-service.py
+++ b/src/steamos-devkit-service.py
@@ -78,8 +78,8 @@ def write_key(post_body):
     if length >= 64 * 1024:
         print("Key length too long")
         return None
-    if not post_body.decode().startswith('ssh-rsa'):
-        print("Key doesn't start with ssh-rsa")
+    if not post_body.decode().startswith('ssh-rsa '):
+        print("Key doesn't start with ssh-rsa ")
         return None
 
     # Get to the base64 bits
-- 
GitLab