Skip to content

Commit dae1a15

Browse files
committed
Fix #692 superfluous_charset warnings
1 parent 03cc4d8 commit dae1a15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

slack/web/base_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _get_headers(
8787
"""
8888
final_headers = {
8989
"User-Agent": self._get_user_agent(),
90-
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
90+
"Content-Type": "application/x-www-form-urlencoded",
9191
}
9292

9393
if self.token:
@@ -505,7 +505,7 @@ def _perform_urllib_http_request(
505505
headers["Content-Length"] = len(body)
506506
elif args["params"]:
507507
body = urlencode(args["params"])
508-
headers["Content-Type"] = "application/x-www-form-urlencoded;charset=utf-8"
508+
headers["Content-Type"] = "application/x-www-form-urlencoded"
509509
else:
510510
body = None
511511

@@ -552,7 +552,7 @@ def _build_urllib_request_headers(
552552
):
553553
headers = {
554554
"User-Agent": self._get_user_agent(),
555-
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
555+
"Content-Type": "application/x-www-form-urlencoded",
556556
}
557557
headers.update(self.headers)
558558
if token:

0 commit comments

Comments
 (0)