Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme committed Jul 24, 2024
1 parent a1fab0a commit ea8477a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class HTTP extends Service<HTTP.Config> {
const type = response.headers.get('Content-Type')
if (type?.startsWith('application/json')) {
if (response.headers.get('Content-Length') === '0') {
return Promise.resolve({})
return response.text()
}
return response.json()
} else if (type?.startsWith('text/')) {
Expand Down

0 comments on commit ea8477a

Please sign in to comment.