Skip to content

Commit b34f3fc

Browse files
committed
Enforce Edge referece-type to UTF-8 encoding
1 parent b5cc5c1 commit b34f3fc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ravenpackapi/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ravenpackapi.utils.dynamic_sessions import DynamicSession
1616

1717
_VALID_METHODS = ('get', 'post', 'put', 'delete', 'patch')
18-
VERSION = '1.0.56'
18+
VERSION = '1.0.57'
1919

2020
logger = logging.getLogger("ravenpack.core")
2121

@@ -208,6 +208,8 @@ def get_entity_type_reference(self,
208208
params={k: v for k, v in params.items() if v}, # exclude missing params
209209
stream=True,
210210
)
211+
if self.product == 'edge':
212+
response.encoding = 'utf-8'
211213
return EntityTypeReference(http_response=response)
212214

213215
@staticmethod

ravenpackapi/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ class ValidationError(Exception):
6666
pass
6767

6868

69-
class ApiConnectionError(requests.ConnectionError):
69+
class ApiConnectionError(requests.RequestException):
7070
pass

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '1.0.56'
3+
VERSION = '1.0.57'
44

55
with open('README.rst') as readme_file:
66
readme = readme_file.read()

0 commit comments

Comments
 (0)