mirror of https://github.com/NobyDa/Script.git
Fix HTTP/2 issues.
This commit is contained in:
parent
735063ee4f
commit
762148ef83
|
@ -81,7 +81,7 @@ function GetCookie() {
|
|||
var CookieKey = "CookieBM";
|
||||
var regex = /SESSDATA=.+?;/;
|
||||
if ($request.headers) {
|
||||
var header = $request.headers['Cookie'] ? $request.headers['Cookie'] : "";
|
||||
var header = Object.keys($request.headers).reduce((t, i) => (t[i.toLowerCase()] = $request.headers[i], t), {})['cookie'] || '';
|
||||
if (header.indexOf("SESSDATA=") != -1) {
|
||||
var CookieValue = regex.exec(header)[0];
|
||||
if ($.getdata(CookieKey)) {
|
||||
|
|
Loading…
Reference in New Issue