Skip to content

Commit

Permalink
Fix slackapi#692 superfluous_charset warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 19, 2020
1 parent 03cc4d8 commit dae1a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slack/web/base_client.py
Expand Up @@ -87,7 +87,7 @@ def _get_headers(
"""
final_headers = {
"User-Agent": self._get_user_agent(),
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
"Content-Type": "application/x-www-form-urlencoded",
}

if self.token:
Expand Down Expand Up @@ -505,7 +505,7 @@ def _perform_urllib_http_request(
headers["Content-Length"] = len(body)
elif args["params"]:
body = urlencode(args["params"])
headers["Content-Type"] = "application/x-www-form-urlencoded;charset=utf-8"
headers["Content-Type"] = "application/x-www-form-urlencoded"
else:
body = None

Expand Down Expand Up @@ -552,7 +552,7 @@ def _build_urllib_request_headers(
):
headers = {
"User-Agent": self._get_user_agent(),
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
"Content-Type": "application/x-www-form-urlencoded",
}
headers.update(self.headers)
if token:
Expand Down

0 comments on commit dae1a15

Please sign in to comment.