Skip to content

Commit e28bf8d

Browse files
committed
Bug fixes
1 parent 6887c27 commit e28bf8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nasriya/hypercloud",
3-
"version": "1.2.7",
3+
"version": "1.2.8",
44
"description": "Nasriya HyperCloud is a lightweight Node.js HTTP2 framework.",
55
"main": "./dist/cjs/hypercloud.js",
66
"module": "./dist/esm/hypercloud.js",

src/services/handler/assets/requestBody.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RequestBody {
99
set(name: string, value: any) {
1010
if (typeof name !== 'string') { throw new TypeError(`The property name can only be a string, instead got ${typeof name}`) }
1111
if (!(name === '__proto__' || name === 'constructor' || name === 'prototype')) {
12-
this.#_data[name] = value;
12+
this.#_data[name] = decodeURIComponent(value);
1313
}
1414
}
1515

@@ -32,7 +32,7 @@ class RequestBody {
3232
from(value: any) {
3333
if (typeof value === 'object' && Object.keys(value).length > 0) {
3434
for (const prop in value) {
35-
this.set(prop, decodeURIComponent(value[prop]));
35+
this.set(prop, value[prop]);
3636
}
3737
}
3838

0 commit comments

Comments
 (0)