Skip to content

is_zipfile does not set the position to the file header #122356

Closed
@0xMattina

Description

@0xMattina

if hasattr(filename, "read"):
result = _check_zipfile(fp=filename)

When filename is BytesIO, is_zipfile don't set the position to the file header.
This will affect other codes.

And it's my first issues,i don't known how to report the question,sorry

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions