Page MenuHomeSoftware Heritage

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

Authored by douardda on Oct 11 2019, 1:25 PM.

Details

Summary

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.

Test Plan

this should fix the tests on jenkins

Diff Detail