Skip to content

Unable to proxy binary responses like images #31

@vinkobuble

Description

@vinkobuble

We are trying to proxy a third-party image service and we need the proxy library to respond with the raw binary payload it received from the service. Even after setting the 'return_raw' flag, the payload is converted to text before further responding.

It works when I change response.text to response.content on the marked line.

return HttpResponse(response.text, status=response.status_code,

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