minimalistic-server 0.0.40 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1416,7 +1416,7 @@ export class Request {
1416
1416
  }
1417
1417
 
1418
1418
  const isString = typeof data === 'string';
1419
- const buffer = data instanceof Buffer ? buffer : (isString ? Buffer.from(data, 'utf-8') : Buffer.from(data));
1419
+ const buffer = data instanceof Buffer ? data : (isString ? Buffer.from(data, 'utf-8') : Buffer.from(data));
1420
1420
  const length = buffer.length;
1421
1421
 
1422
1422
  let payloadLength = [length];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimalistic-server",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "engines" : {
5
5
  "npm" : ">=8.6.0",
6
6
  "node" : ">=22.0.0"