Permalink
Browse files

Untabify...

  • Loading branch information...
1 parent ef803e1 commit 8ad59c61bdfab3cc6e0ecf111aec3708c2e4fbed @tbje committed Dec 1, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/scala/gt4s/Start.scala
@@ -20,10 +20,10 @@ object Hello extends cycle.Plan with cycle.ThreadPool with ServerErrorResponse {
case Some(is) =>
Ok ~> FileStreamer(is)
case None =>
- val msg = "I am sorry I cannot load your request :( I expected to be able to load a file but, alas, I could not."
- InternalServerError ~> ResponseString(msg)
- }
- }
+ val msg = "I am sorry I cannot load your request :( I expected to be able to load a file but, alas, I could not."
+ InternalServerError ~> ResponseString(msg)
+ }
+ }
case class FileStreamer (is: InputStream) extends ResponseStreamer {
def stream(os: OutputStream) = using(is)(is=>Stream.continually(is.read).takeWhile(-1 !=).foreach(os.write(_)))

0 comments on commit 8ad59c6

Please sign in to comment.