Skip to content

fetch thumbnail with HEAD request #174

@hadi4ii

Description

@hadi4ii

there is a problem in sometimes to fetch thumbnail with HEAD request.
error is :

thread 'tokio-runtime-worker' panicked at src/main.rs:388:70:
called Result::unwrap() on an Err value: Unsupported(UnsupportedError { format: Unknown, kind: Format(Unknown) })

the problem is that in code(main.rs:344), the type of request method ( GET or HEAD ) is not checked for complete the response.

the solution is that line main.rs:344 change with below line:

if rewrite && req.method() == Method::GET {

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