piped-proxy icon indicating copy to clipboard operation
piped-proxy copied to clipboard

fetch thumbnail with HEAD request

Open hadi4ii opened this issue 1 year ago • 0 comments

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 {

hadi4ii avatar Apr 22 '24 10:04 hadi4ii