From 9e2d792a7c77205fdbc0b33db85d0858875b874f Mon Sep 17 00:00:00 2001 From: Ravi Bisht <47188858+ravibisht@users.noreply.github.com> Date: Mon, 14 Nov 2022 23:36:35 +0530 Subject: [PATCH] Using variable for application/json. --- src/response/AuthResponse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/response/AuthResponse.js b/src/response/AuthResponse.js index 5a4abee5..81c90c49 100644 --- a/src/response/AuthResponse.js +++ b/src/response/AuthResponse.js @@ -144,7 +144,7 @@ AuthResponse.prototype.getContentType = function getContentType() { * @returns {boolean} isJson */ AuthResponse.prototype.isJson = function isJson() { - return this.isContentType('application/json'); + return this.isContentType(AuthResponse._jsonContentType); };