修复参数key 和 value填反了的bug

This commit is contained in:
q4speed 2020-05-21 14:41:47 +08:00
parent 77db7f8464
commit 1f4e2e14da
1 changed files with 2 additions and 2 deletions

View File

@ -75,9 +75,9 @@
let parameters = [];
let url = new URL(this.addProtocol(this.request.url));
url.searchParams.forEach(function (key, value) {
url.searchParams.forEach((value, key) => {
if (key && value) {
parameters.push(new KeyValue({name: key, value: value}));
parameters.push(new KeyValue(key, value));
}
});
//