@wiajs/request 3.0.28 → 3.0.29
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.
- package/dist/request.cjs +2 -1
- package/dist/request.mjs +2 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/dist/request.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wia request v3.0.
|
|
2
|
+
* wia request v3.0.29
|
|
3
3
|
* (c) 2022-2024 Sibyl Yu and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1633,6 +1633,7 @@ function init(uri, opts, cb) {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
|
|
1635
1635
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
1636
|
+
if (opts.method) opts.method = opts.method.toUpperCase();
|
|
1636
1637
|
|
|
1637
1638
|
R = {opts: opts, cb: cb};
|
|
1638
1639
|
// log({R}, 'init')
|
package/dist/request.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wia request v3.0.
|
|
2
|
+
* wia request v3.0.29
|
|
3
3
|
* (c) 2022-2024 Sibyl Yu and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1630,6 +1630,7 @@ function init(uri, opts, cb) {
|
|
|
1630
1630
|
};
|
|
1631
1631
|
|
|
1632
1632
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
1633
|
+
if (opts.method) opts.method = opts.method.toUpperCase();
|
|
1633
1634
|
|
|
1634
1635
|
R = {opts: opts, cb: cb};
|
|
1635
1636
|
// log({R}, 'init')
|
package/lib/index.js
CHANGED
|
@@ -58,6 +58,7 @@ const WritebBeenAbortedError = utils.createErrorType('ERR_STREAM_WRITE_BEEN_ABOR
|
|
|
58
58
|
...opts
|
|
59
59
|
};
|
|
60
60
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
61
|
+
if (opts.method) opts.method = opts.method.toUpperCase();
|
|
61
62
|
R = {
|
|
62
63
|
opts: opts,
|
|
63
64
|
cb: cb
|
package/package.json
CHANGED