Skip to content

Commit

Permalink
Merge pull request #20 from swift-server/jo/finish-bodywriter
Browse files Browse the repository at this point in the history
Hummingbird 2's semantics changed, requiring body streams to finish the stream explicitly
  • Loading branch information
Joannis authored Sep 30, 2024
2 parents 14dd2e2 + e268d15 commit 026b50b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/OpenAPIHummingbird/OpenAPITransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 026b50b

Please sign in to comment.