Browse Source

spray: update to latest spray milestone, 1.1-M8

Johannes Rudolph 12 years ago
parent
commit
6d5e5b850c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      spray/build.sbt
  2. 1 1
      spray/src/main/scala/spray/examples/BenchmarkService.scala

+ 1 - 1
spray/build.sbt

@@ -15,7 +15,7 @@ resolvers ++= Seq(
 
 libraryDependencies ++= Seq(
   "io.spray" %% "spray-json" % "1.2.4",
-  "io.spray" % "spray-can" % "1.1-20130513",
+  "io.spray" % "spray-can" % "1.1-M8",
   "com.typesafe.akka" %%  "akka-actor" % "2.1.2",
   "com.typesafe.akka" %%  "akka-slf4j" % "2.1.2",
   "ch.qos.logback"% "logback-classic" % "1.0.12" % "runtime"

+ 1 - 1
spray/src/main/scala/spray/examples/BenchmarkService.scala

@@ -17,7 +17,7 @@ class BenchmarkService extends Actor {
   def fastPath: Http.FastPath = {
     case HttpRequest(GET, Uri(_, _, Slash(Segment("json", Path.Empty)), _, _), _, _, _) =>
       val json = JsObject("message" -> JsString("Hello, World!"))
-      HttpResponse(entity = HttpEntity(ContentType.`application/json`, json.compactPrint))
+      HttpResponse(entity = HttpEntity(ContentTypes.`application/json`, json.compactPrint))
   }
 
   def receive = {