piped-proxy
piped-proxy copied to clipboard
fetch thumbnail with HEAD request
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 anErrvalue: 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 {