From 7d135e9921c91dfbd8436e5f02e23bc6544c2b4b Mon Sep 17 00:00:00 2001 From: Papaia <43409674+papaia@users.noreply.github.com> Date: Mon, 1 Feb 2021 23:43:31 +0200 Subject: [PATCH] fix(Request#then): match native Promise#then (#87) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c477c21..ad53cc9 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ class Request { } then(resolver, rejector) { - return this._request().then(resolver).catch(rejector); + return this._request().then(resolver, rejector); } catch(rejector) {