meeshkan / hmt

HTTP Mocking Toolkit
MIT License
52 stars 7 forks source link

Fix body decoding in MockServerView #90

Closed fornwall closed 4 years ago

fornwall commented 4 years ago

Callingstr(self.request.body) when self.request.body is a bytes instance does not work, instead we should decode the bytes.

Since we now get the correct decoded body, we can drop _extract_json_safel as py-http-types takes care of the same thing.