Skip to content

Commit

Permalink
fix(swagger): detection of empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Nov 26, 2021
1 parent 88b83ba commit 9bfab02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/swagger.js
Expand Up @@ -66,7 +66,7 @@ export default async (
url,
spec,
responseInterceptor: response => {
if (!response.text) return response
if (response.text === '' || response.text?.size === 0) return response
const body = jsonImp.parse(response.text)
Object.assign(response, {
body: disableCaseConversion ? body : pascalizeKeys(body)
Expand Down

0 comments on commit 9bfab02

Please sign in to comment.