Skip to content

Commit

Permalink
Provide custom abort message on stream.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Feb 23, 2024
1 parent a6edd8c commit c86ae56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-client/fetch-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class FetchClient implements HTTPClient, HTTPStreamClient {
return {
read: reader(),
close: () => {
abortController.abort();
abortController.abort("Stream closed by the client.");
},
};
}
Expand Down

0 comments on commit c86ae56

Please sign in to comment.