From a9c036cb00a5bf07456fb9d75904d0d1c0d64bcd Mon Sep 17 00:00:00 2001 From: Milan Bharanya <10432831+mbharanya@users.noreply.github.com> Date: Thu, 10 May 2018 10:02:28 +0200 Subject: [PATCH] Fix WebRequest defaults The option inside RequestOptions is called `throwResponseError` not `throwResponseError*s*` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdbd4a4..a520d20 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ await WebRequest.get('http://xyzzy.com/123', {throwResponseError: true}); Throw an exception for any request that results in an error response. ```js -WebRequest.defaults({throwResponseErrors: true}); +WebRequest.defaults({throwResponseError: true}); ``` ## Interface