Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit f5fc28a

Browse files
maxnasonovabn
authored andcommitted
force to use UTF-8 encoding for the response
1 parent 100b99c commit f5fc28a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

consul/std.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def __init__(self, host='127.0.0.1', port=8500, scheme='http',
1919
self.session = requests.session()
2020

2121
def response(self, response):
22+
response.encoding = 'utf-8'
2223
return base.Response(
2324
response.status_code, response.headers, response.text)
2425

0 commit comments

Comments
 (0)