Skip to content

Commit

Permalink
Fixed problem from issue #183 (#184)
Browse files Browse the repository at this point in the history
The xpath in set_value_by_xpath is now also url encoded.
Now requests with selectors (e.g. "some/xpath[Key='Value']") are possible without "Invalid format" errors.
  • Loading branch information
tb1402 authored Oct 1, 2023
1 parent 9441fdd commit e5feb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sagemcom_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ async def set_value_by_xpath(
actions = {
"id": 0,
"method": "setValue",
"xpath": xpath,
"xpath": urllib.parse.quote(xpath),
"parameters": {"value": str(value)},
"options": options,
}
Expand Down

0 comments on commit e5feb53

Please sign in to comment.