Skip to content

Commit cd1fcaf

Browse files
committed
hotfix: fix bytes encoding issue in game_twitter_auth.py
1 parent cea68d3 commit cd1fcaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/twitter/twitter_plugin_gamesdk/game_twitter_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ def do_GET(self) -> None:
3535
self.send_response(200)
3636
self.send_header("Content-type", "text/plain")
3737
self.end_headers()
38-
self.wfile.write("Authentication successful! You may close this window and return to the terminal.")
38+
self.wfile.write(b"Authentication successful! You may close this window and return to the terminal.")
3939
print("Authentication successful!")
4040
print(f"Access Token: {access_token}")
4141
self.server.shutdown() # Stop the server after successful auth
4242
else:
4343
self.send_response(400)
4444
self.end_headers()
45-
self.wfile.write("Invalid request")
45+
self.wfile.write(b"Invalid request")
4646
else:
4747
self.send_response(404)
4848
self.end_headers()
49-
self.wfile.write("Not Found")
49+
self.wfile.write(b"Not Found")
5050

5151

5252
class AuthManager:

0 commit comments

Comments
 (0)