Skip to content

Commit

Permalink
Use fetch for requests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-hui committed Oct 3, 2023
1 parent cca4735 commit ec0e2c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
createWebChannelTransport,
ErrorCode,
EventType,
FetchXmlHttpFactory,
WebChannel,
WebChannelError,
WebChannelOptions,
Expand Down Expand Up @@ -209,6 +210,9 @@ export class WebChannelConnection extends RestConnection {

if (this.useFetchStreams) {
request.useFetchStreams = true;
request.xmlHttpFactory = new FetchXmlHttpFactory({
streamBinaryChunks: true
});
}

this.modifyHeadersForRequest(
Expand Down

0 comments on commit ec0e2c7

Please sign in to comment.