Skip to content

Commit 0ddafbd

Browse files
authored
Merge pull request #260 from someshkoli/fix/pythonrequeststest
Removes utf8 encoding from generated snippet (python-requests)
2 parents cab17f7 + 0c5005e commit 0ddafbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegens/python-requests/lib/python-requests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ self = module.exports = {
170170
snippet += !options.followRedirect ? ', allow_redirects=False' : '';
171171
snippet += options.requestTimeout !== 0 ? `, timeout=${options.requestTimeout}` : '';
172172
snippet += ')\n\n';
173-
snippet += 'print(response.text.encode(\'utf8\'))\n';
173+
snippet += 'print(response.text)\n';
174174

175175
callback(null, snippet);
176176
}

0 commit comments

Comments
 (0)