We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028147b commit f513b10Copy full SHA for f513b10
packages/build/src/homebrew/utils.ts
@@ -47,6 +47,10 @@ export async function httpGet(
47
): Promise<any | Buffer> {
48
const response = await new Promise<string | Buffer[]>((resolve, reject) => {
49
https.get(url, (stream) => {
50
+ if (responseType === 'json') {
51
+ stream.setEncoding('utf8');
52
+ }
53
+
54
let data: string | Buffer[] = responseType === 'json' ? '' : [];
55
stream.on('error', (err) => reject(err));
56
stream.on('data', (chunk) => {
0 commit comments