Skip to content

Commit 336af8e

Browse files
hemkerDennis Hemker
andauthored
Fix safe encoding for passwords with exclamation mark (#93)
Co-authored-by: Dennis Hemker <[email protected]>
1 parent e0fee8d commit 336af8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reolinkapi/mixins/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_snap(self, timeout: float = 3, proxies: Any = None) -> Optional[Image]:
4040
'user': self.username,
4141
'password': self.password,
4242
}
43-
parms = parse.urlencode(data).encode("utf-8")
43+
parms = parse.urlencode(data, safe="!").encode("utf-8")
4444

4545
try:
4646
response = requests.get(self.url, proxies=proxies, params=parms, timeout=timeout)

0 commit comments

Comments
 (0)