Skip to content

Error when printing response where content type is empty string #163

@mgirlich

Description

@mgirlich

I encountered a response I cannot print. It boiled down to the response having the empty string as content type.

httr2::response(headers = list(`Content-Type` = ""))
#> <httr2_response>
#> GET https://example.com
#> Status: 200 OK
#> Error in pieces[[1]]: subscript out of bounds

Created on 2022-08-03 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions