File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
app/src/main/java/me/teble/xposed/autodaily/task/request/impl Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import java.io.IOException
21
21
import java.lang.Integer.min
22
22
import java.nio.charset.Charset
23
23
import java.util.concurrent.TimeUnit
24
+ import kotlin.collections.set
24
25
25
26
object HttpTaskReqUtil : ITaskReqUtil {
26
27
@@ -59,12 +60,20 @@ object HttpTaskReqUtil : ITaskReqUtil {
59
60
headers[it.key.lowercase()] = EnvFormatUtil .format(it.value, task.domain, env)
60
61
}
61
62
LogUtil .d(" header 头构造完毕: $headers " )
62
- var cookie: String? = null
63
+ var cookie: String? = headers[ " cookie " ]
63
64
when (task.domain) {
64
65
null -> {}
65
66
// qqDomain
66
67
else -> {
67
- cookie = getQDomainCookies(task.domain)
68
+ if (cookie != null ) {
69
+ cookie = cookie.trim()
70
+ if (! cookie.endsWith(" ;" )) {
71
+ cookie + = " ; " ;
72
+ }
73
+ cookie + = getQDomainCookies(task.domain)
74
+ } else {
75
+ cookie = getQDomainCookies(task.domain)
76
+ }
68
77
}
69
78
}
70
79
LogUtil .d(" cookie 构造完毕: $cookie (${cookie?.length} )" )
You can’t perform that action at this time.
0 commit comments