fix: cv load failed

This commit is contained in:
guozhigq
2024-11-13 00:27:47 +08:00
parent 3ee5e7acfc
commit 9f9a568322
2 changed files with 9 additions and 1 deletions

View File

@ -217,6 +217,13 @@ class Request {
if (extra['ua'] != null) {
options.headers = {'user-agent': headerUa(type: extra['ua'])};
}
if (extra['opus-goback'] != null) {
if (extra['opus-goback'] != null) {
String cookieHeader = dio.options.headers['cookie'];
options.headers!['cookie'] =
'$cookieHeader; opus-goback = ${extra['opus-goback']}';
}
}
}
options.responseType = resType;