修复自定义通知 body 中 key 被自动转为小写

This commit is contained in:
whyour 2023-12-04 17:44:13 +08:00
parent b89dc6dfc6
commit 13e7dac333
3 changed files with 6 additions and 6 deletions

View File

@ -364,7 +364,7 @@ export function parseBody(
body &&
body.split('\n').forEach(function parser(line) {
i = line.indexOf(':');
key = line.substring(0, i).trim().toLowerCase();
key = line.substring(0, i).trim();
val = line.substring(i + 1).trim();
if (!key || parsed[key]) {

View File

@ -1362,7 +1362,7 @@ function parseBody(body, contentType) {
body &&
body.split('\n').forEach(function parser(line) {
i = line.indexOf(':');
key = line.substring(0, i).trim().toLowerCase();
key = line.substring(0, i).trim();
val = line.substring(i + 1).trim();
if (!key || parsed[key]) {

View File

@ -760,7 +760,7 @@ def parse_body(body, content_type):
if i == -1:
continue
key = line[:i].strip().lower()
key = line[:i].strip()
val = line[i + 1 :].strip()
if not key or key in parsed: