Skip to content

Commit 14a167e

Browse files
author
Tim Schneider
committed
Fixed bug in RobotWebSession
1 parent 749e0e8 commit 14a167e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

franky/robot_web_session.py

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def send_api_request(self, target: str, headers: Optional[Dict[str, str]] = None
6262
def send_control_api_request(self, target: str, headers: Optional[Dict[str, str]] = None,
6363
body: Optional[Any] = None,
6464
method: Literal["GET", "POST", "DELETE"] = "POST"):
65+
if headers is None:
66+
headers = {}
6567
self.__check_control_token()
6668
_headers = {
6769
"X-Control-Token": self.__control_token

0 commit comments

Comments
 (0)