Skip to content

It doesn't handle response content-type properly #12

Description

@oyyq99999

for example

if result.text:
content_type = result.headers.get('content-type')
if content_type == 'application/json':
return result.json()

when server replies something like

Content-Type: application/json; charset=UTF-8

it fails to detect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions