Skip to content

Commit

Permalink
Enable gzip, deflate compression (#246)
Browse files Browse the repository at this point in the history
* Enable gzip, deflate compression

* Bump version number

* Update changelog.rst
  • Loading branch information
doluk authored Sep 12, 2024
1 parent 6e77203 commit 1446b3d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__version__ = "3.7.1"
__version__ = "3.7.2"

from .abc import BasePlayer, BaseClan
from .clans import RankedClan, Clan
Expand Down
1 change: 1 addition & 0 deletions coc/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ async def request(self, route, **kwargs):
headers = {
"Accept" : "application/json",
"authorization": "Bearer {}".format(next(self.keys)),
"Accept-Encoding": "gzip, deflate",
}
kwargs["headers"] = headers

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
project = 'coc'
copyright = '2022, mathsman5133'
author = 'mathsman5133'
release = '3.7.1'
release = '3.7.2'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
7 changes: 7 additions & 0 deletions docs/miscellaneous/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ Changelog
This page keeps a fairly detailed, human readable version
of what has changed, and whats new for each version of the lib.

v3.7.2
------

Additions:
~~~~~~~~~~
- Enable gzip and deflate encoding/compression

v3.7.1
------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "coc.py"
authors = [{ name = "mathsman5133" }]
maintainers = [{ name = "majordoobie" }, { name = "MagicTheDev" }, { name = "Kuchenmampfer" },
{ name = "lukasthaler"}, { name = "doluk"}]
version = "3.7.1"
version = "3.7.2"
description = "A python wrapper for the Clash of Clans API"
requires-python = ">=3.7.3"
readme = "README.rst"
Expand Down

0 comments on commit 1446b3d

Please sign in to comment.