Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serving files #531

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Fix serving files #531

merged 1 commit into from
Aug 26, 2024

Conversation

adam-fowler
Copy link
Member

No description provided.

@@ -123,6 +123,7 @@ public struct FileIO: Sendable {
fileOffset = range.index(fileOffset, offsetBy: bytesToRead)
try await writer.write(buffer)
}
try await writer.finish(nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we can test in a unit test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we did, obviously not. I'll add a test in a separate PR.

@adam-fowler adam-fowler merged commit b990a10 into main Aug 26, 2024
5 checks passed
@adam-fowler adam-fowler deleted the file-response-body branch August 26, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants