Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,11 @@ public class CRTClientEngine: HTTPClient {
switch result {
case .success(let statusCode):
response.statusCode = makeStatusCode(statusCode)
stream.close()
case .failure(let error):
self.logger.error("Response encountered an error: \(error)")
continuation.safeResume(error: error)
stream.closeWithError(error)
}

// closing the stream is required to signal to the caller that the response is complete
// and no more data will be received in this stream
stream.close()
}

requestOptions.http2ManualDataWrites = http2ManualDataWrites
Expand Down
Loading