forked from clan/clan-core
moonlight-sunshine-accept: Fix formatting error
This commit is contained in:
parent
4fef9c3652
commit
9ec8b71765
@ -22,7 +22,7 @@ def pair(pin: str) -> str:
|
|||||||
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
|
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
|
||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": "Basic %s" % user_and_pass,
|
"Authorization": f"Basic {user_and_pass}",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define the parameters
|
# Define the parameters
|
||||||
@ -47,7 +47,7 @@ def restart() -> None:
|
|||||||
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
|
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
|
||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": "Basic %s" % user_and_pass,
|
"Authorization": f"Basic {user_and_pass}",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define the parameters
|
# Define the parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user