We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312f8df commit 5474667Copy full SHA for 5474667
1 file changed
lib/solr.ts
@@ -300,10 +300,13 @@ export class Client {
300
method: 'POST',
301
headers: headers,
302
};
303
- const jsonStreamStringify = JSONStream.stringify();
304
- const postRequest = oldRequest(optionsRequest);
305
- jsonStreamStringify.pipe(postRequest);
306
- return duplexer(jsonStreamStringify, postRequest);
+ return stream.compose(
+ JSONStream.stringify(),
+ undici.pipeline(optionsRequest, ({ statusCode, headers, body }) => {
+ // TODO:
307
+ return body
308
+ })
309
+ )
310
}
311
312
/**
0 commit comments