Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch thumbnail with HEAD request #174

Open
hadi4ii opened this issue Apr 22, 2024 · 0 comments
Open

fetch thumbnail with HEAD request #174

hadi4ii opened this issue Apr 22, 2024 · 0 comments

Comments

@hadi4ii
Copy link

hadi4ii commented Apr 22, 2024

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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant