Skip to content

Commit 1446b3d

Browse files
authored
Enable gzip, deflate compression (#246)
* Enable gzip, deflate compression * Bump version number * Update changelog.rst
1 parent 6e77203 commit 1446b3d

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

coc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = "3.7.1"
25+
__version__ = "3.7.2"
2626

2727
from .abc import BasePlayer, BaseClan
2828
from .clans import RankedClan, Clan

coc/http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ async def request(self, route, **kwargs):
263263
headers = {
264264
"Accept" : "application/json",
265265
"authorization": "Bearer {}".format(next(self.keys)),
266+
"Accept-Encoding": "gzip, deflate",
266267
}
267268
kwargs["headers"] = headers
268269

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
project = 'coc'
1616
copyright = '2022, mathsman5133'
1717
author = 'mathsman5133'
18-
release = '3.7.1'
18+
release = '3.7.2'
1919

2020
# -- General configuration ---------------------------------------------------
2121
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/miscellaneous/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Changelog
77
This page keeps a fairly detailed, human readable version
88
of what has changed, and whats new for each version of the lib.
99

10+
v3.7.2
11+
------
12+
13+
Additions:
14+
~~~~~~~~~~
15+
- Enable gzip and deflate encoding/compression
16+
1017
v3.7.1
1118
------
1219

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "coc.py"
77
authors = [{ name = "mathsman5133" }]
88
maintainers = [{ name = "majordoobie" }, { name = "MagicTheDev" }, { name = "Kuchenmampfer" },
99
{ name = "lukasthaler"}, { name = "doluk"}]
10-
version = "3.7.1"
10+
version = "3.7.2"
1111
description = "A python wrapper for the Clash of Clans API"
1212
requires-python = ">=3.7.3"
1313
readme = "README.rst"

0 commit comments

Comments
 (0)