forked from recloudstream/cloudstream
fixed header key
This commit is contained in:
parent
cc0fdd8a7a
commit
51d4d296fc
1 changed files with 4 additions and 4 deletions
|
@ -62,8 +62,8 @@ class HttpSession {
|
||||||
stream, files
|
stream, files
|
||||||
)
|
)
|
||||||
sessionCookies.putAll(res.cookies.toMap())
|
sessionCookies.putAll(res.cookies.toMap())
|
||||||
if (res.headers.containsKey("set-content")) {
|
if (res.headers.containsKey("set-cookie")) {
|
||||||
sessionCookies.putAll(cookieStrToMap(res.headers["set-content"].toString().replace("path=/,", "")))
|
sessionCookies.putAll(cookieStrToMap(res.headers["set-cookie"].toString().replace("path=/,", "")))
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
@ -86,8 +86,8 @@ class HttpSession {
|
||||||
stream, files
|
stream, files
|
||||||
)
|
)
|
||||||
sessionCookies.putAll(res.cookies.toMap())
|
sessionCookies.putAll(res.cookies.toMap())
|
||||||
if (res.headers.containsKey("set-content")) {
|
if (res.headers.containsKey("set-cookie")) {
|
||||||
sessionCookies.putAll(cookieStrToMap(res.headers["set-content"].toString().replace("path=/,", "")))
|
sessionCookies.putAll(cookieStrToMap(res.headers["set-cookie"].toString().replace("path=/,", "")))
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue