réplica de
https://github.com/therootcompany/request.js.git
sincronizado 2024-11-16 17:28:58 +00:00
fix(browser): allow single string url as only argument
Este cometimento está contido em:
ascendente
420eb4f197
cometimento
a98d4b7341
@ -33,6 +33,9 @@ let _optionKeys = Object.keys(_fetchDefaults).concat([
|
|||||||
|
|
||||||
function setDefaults(_defs) {
|
function setDefaults(_defs) {
|
||||||
return async function request(opts) {
|
return async function request(opts) {
|
||||||
|
if ('string' === typeof opts) {
|
||||||
|
opts = { url: opts };
|
||||||
|
}
|
||||||
let reqOpts = { headers: {} };
|
let reqOpts = { headers: {} };
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Carregando…
x
Criar uma nova questão referindo esta
Bloquear um utilizador