mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修复自定义通知 body 中 key 被自动转为小写
This commit is contained in:
parent
b89dc6dfc6
commit
13e7dac333
|
@ -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]) {
|
||||
|
|
|
@ -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]) {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user