diff --git a/Sources/OpenAPIHummingbird/OpenAPITransport.swift b/Sources/OpenAPIHummingbird/OpenAPITransport.swift index f8ddd9c..2001cb6 100644 --- a/Sources/OpenAPIHummingbird/OpenAPITransport.swift +++ b/Sources/OpenAPIHummingbird/OpenAPITransport.swift @@ -85,6 +85,7 @@ extension Response { for try await buffer in bufferSequence { try await writer.write(buffer) } + try await writer.finish(nil) } } else { responseBody = .init(asyncSequence: bufferSequence)