Fix HTTP/2 issues.

This commit is contained in:
NobyDa 2022-06-15 21:16:31 +08:00
parent 735063ee4f
commit 762148ef83
No known key found for this signature in database
GPG Key ID: E6B0AC788D373C5B
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {