Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
ad8f443c
Commit
ad8f443c
authored
May 16, 2021
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fix:Backend) 修复 multipart 发包方式下, 编码器中 data 内容不为字符串时异常
parent
c6847f44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
CHANGELOG.md
CHANGELOG.md
+20
-0
request.js
modules/request.js
+2
-2
No files found.
CHANGELOG.md
View file @
ad8f443c
...
...
@@ -2,6 +2,26 @@
> 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `2.1.13`
### 后端模块
*
修复 multipart 发包方式下, 编码器中 data 内容不为字符串时异常
eg:
```
'use strict';
module.exports = (pwd, data) => {
data['test'] = 123; // 这里会引发异常
data[pwd] = data['_'];
delete data['_'];
return data;
}
```
## 2021/05/15 `v(2.1.12)`
### 核心
...
...
modules/request.js
View file @
ad8f443c
...
...
@@ -192,7 +192,7 @@ class Request {
_request
.
send
=
_request
.
field
;
for
(
var
key
in
_postData
)
{
if
(
_postData
.
hasOwnProperty
(
key
))
{
let
_tmp
=
(
_postData
[
key
]).
replace
(
/asunescape
\((
.+
?)\)
/g
,
function
(
$
,
$1
)
{
let
_tmp
=
String
(
_postData
[
key
]).
replace
(
/asunescape
\((
.+
?)\)
/g
,
function
(
$
,
$1
)
{
return
unescape
(
$1
)
});
_postarr
[
key
]
=
_tmp
;
...
...
@@ -362,7 +362,7 @@ class Request {
_request
.
send
=
_request
.
field
;
for
(
var
key
in
_postData
)
{
if
(
_postData
.
hasOwnProperty
(
key
))
{
let
_tmp
=
(
_postData
[
key
]).
replace
(
/asunescape
\((
.+
?)\)
/g
,
function
(
$
,
$1
)
{
let
_tmp
=
String
(
_postData
[
key
]).
replace
(
/asunescape
\((
.+
?)\)
/g
,
function
(
$
,
$1
)
{
return
unescape
(
$1
)
});
_postarr
[
key
]
=
_tmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment