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

WAI middleware that converts a ResponseFile into ResponseStream. #317

Merged
merged 8 commits into from Jan 5, 2015

Conversation

pparkkin
Copy link
Contributor

Code and a simple test case.

I had a hard time figuring out a good test case, since the whole point is to make file responses look like file responses despite being a stream internally. I did add a couple to make sure it's not completely broken at least.

In response to issue #315 .

@@ -0,0 +1,33 @@
{-# LANGUAGE OverloadedStrings #-}

module Network.Wai.Middleware.StreamFile where
Copy link
Member

Choose a reason for hiding this comment

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

I think this should have an explicit output list.

@pparkkin
Copy link
Contributor Author

pparkkin commented Jan 4, 2015

Just commenting to make sure you see that I made the requested changes.

snoyberg added a commit that referenced this pull request Jan 5, 2015
WAI middleware that converts a ResponseFile into ResponseStream.
@snoyberg snoyberg merged commit aa0cba9 into yesodweb:master Jan 5, 2015
@snoyberg
Copy link
Member

snoyberg commented Jan 5, 2015

Thanks, I don't get notifications for updating commits, so a message is very useful.

@pparkkin pparkkin deleted the streamfile branch January 5, 2015 11:30
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.

None yet

2 participants