Skip to content

Commit

Permalink
added some images for the Serenity Jasmine runner, added the ability …
Browse files Browse the repository at this point in the history
…to write files to the output stream to the OWIN host
  • Loading branch information
jeremydmiller committed Nov 15, 2011
1 parent 7d6441a commit 7eddbb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FubuMVC.OwinHost/OwinHttpWriter.cs
@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Net;
using System.Security.AccessControl;
using System.Web;
using FubuCore;
using FubuCore.Util;
Expand Down Expand Up @@ -29,7 +30,10 @@ public void AppendHeader(string key, string value)

public void WriteFile(string file)
{
throw new NotImplementedException();
using (var fileStream = new FileStream(file, FileMode.Open))
{
Write(stream => fileStream.CopyTo(stream, 64000));
}
}

public void WriteContentType(string contentType)
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7eddbb3

Please sign in to comment.