File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/services/handler/assets Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nasriya/hypercloud" ,
3
- "version" : " 1.2.7 " ,
3
+ "version" : " 1.2.8 " ,
4
4
"description" : " Nasriya HyperCloud is a lightweight Node.js HTTP2 framework." ,
5
5
"main" : " ./dist/cjs/hypercloud.js" ,
6
6
"module" : " ./dist/esm/hypercloud.js" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class RequestBody {
9
9
set ( name : string , value : any ) {
10
10
if ( typeof name !== 'string' ) { throw new TypeError ( `The property name can only be a string, instead got ${ typeof name } ` ) }
11
11
if ( ! ( name === '__proto__' || name === 'constructor' || name === 'prototype' ) ) {
12
- this . #_data[ name ] = value ;
12
+ this . #_data[ name ] = decodeURIComponent ( value ) ;
13
13
}
14
14
}
15
15
@@ -32,7 +32,7 @@ class RequestBody {
32
32
from ( value : any ) {
33
33
if ( typeof value === 'object' && Object . keys ( value ) . length > 0 ) {
34
34
for ( const prop in value ) {
35
- this . set ( prop , decodeURIComponent ( value [ prop ] ) ) ;
35
+ this . set ( prop , value [ prop ] ) ;
36
36
}
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments