support pikpak and google api proxy

pull/548/head
微凉 2021-12-20 15:44:17 +08:00
parent b63e65880f
commit d97afb691b
2 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,8 @@ async function handleRequest(event) {
) { ) {
fp.body = await request.text(); fp.body = await request.text();
} else if (ct.includes("form")) { } else if (ct.includes("form")) {
fp.body = await request.formData(); // fp.body = await request.formData();
fp.body = await request.text();
} else { } else {
fp.body = await request.blob(); fp.body = await request.blob();
} }

View File

@ -17,6 +17,7 @@ func (driver PikPak) Config() base.DriverConfig {
return base.DriverConfig{ return base.DriverConfig{
Name: "PikPak", Name: "PikPak",
NeedSetLink: true, NeedSetLink: true,
ApiProxy: true,
} }
} }