mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
fix: Handling empty text responses
This commit is contained in:
parent
ef65273b81
commit
c8deaa2822
@ -55,7 +55,9 @@ async function processBody(response) {
|
||||
|
||||
return Buffer.from(arrayBuffer);
|
||||
default:
|
||||
return response.text();
|
||||
const text = response.text();
|
||||
|
||||
return Promise.resolve(text || '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user