Compare commits

...

2 Commits

Author SHA1 Message Date
dgtlmoon
d3f6b92670 posts:// for notifications also 2024-07-27 13:43:40 +02:00
dgtlmoon
1813977133 Encode requests POST as UTF-8 if it has no encoding/basic string #1315 #2309 2024-07-27 13:40:12 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ class fetcher(Fetcher):
session.mount('file://', FileAdapter())
r = session.request(method=request_method,
data=request_body,
data=request_body.encode('utf-8') if type(request_body) is str else request_body,
url=url,
headers=request_headers,
timeout=timeout,

View File

@@ -107,7 +107,7 @@ def apprise_custom_api_call_wrapper(body, title, notify_type, *args, **kwargs):
r(results.get('url'),
auth=auth,
data=body,
data=body.encode('utf-8') if type(body) is str else body,
headers=headers,
params=params
)