HomeSoftware Heritage

api: fix swh.core.api.decode_request on python 3.5

Description

api: fix swh.core.api.decode_request on python 3.5

The json decoder was broken on py35, as is used to expect a str object and
not a bytes one. For now, we encode the bytes one using utf-8.

This could/should be reverted as soon as we drop support for py35.

Details

Provenance
douarddaAuthored on Oct 11 2019, 1:18 PM
douarddaPushed on Oct 11 2019, 1:32 PM
Differential Revision
D2126: api: fix swh.core.api.decode_request on python 3.5
Parents
rDCOREec7c3f84d114: api: removed deprecated bw-compat classes
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8325
Build 12044: test-and-buildJenkins