🔥 delete proxy interface

This commit is contained in:
微凉
2022-02-02 18:03:54 +08:00
parent 6f14d0eb5c
commit feb42f1f4b
20 changed files with 64 additions and 71 deletions

View File

@ -13,7 +13,6 @@ import (
"io"
"io/ioutil"
"math"
"net/http"
"os"
"path/filepath"
"strconv"
@ -170,9 +169,9 @@ func (driver Baidu) Path(path string, account *model.Account) (*model.File, []mo
return nil, files, nil
}
func (driver Baidu) Proxy(r *http.Request, account *model.Account) {
r.Header.Set("User-Agent", "pan.baidu.com")
}
//func (driver Baidu) Proxy(r *http.Request, account *model.Account) {
// r.Header.Set("User-Agent", "pan.baidu.com")
//}
func (driver Baidu) Preview(path string, account *model.Account) (interface{}, error) {
return nil, base.ErrNotSupport