mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 05:40:06 +00:00
fix: isValidJson function returns the JSON parsed
This commit is contained in:
@@ -429,8 +429,8 @@ export class RequestClient implements HttpClient {
|
||||
throw new Error('Valid JSON could not be extracted from response.')
|
||||
}
|
||||
|
||||
isValidJson(weboutResponse)
|
||||
parsedResponse = JSON.parse(weboutResponse)
|
||||
const jsonResponse = isValidJson(weboutResponse)
|
||||
parsedResponse = jsonResponse
|
||||
} catch {
|
||||
parsedResponse = response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user