fix error to make tests pass webid
authorHenry Story <henry.story@bblfish.net>
Tue, 17 Apr 2012 08:31:53 +0200
branchwebid
changeset 202 d12da8212f7c
parent 201 48c7b927b241
child 203 0e6fc253828c
fix error to make tests pass
src/main/scala/Post.scala
--- a/src/main/scala/Post.scala	Tue Apr 17 08:10:48 2012 +0200
+++ b/src/main/scala/Post.scala	Tue Apr 17 08:31:53 2012 +0200
@@ -24,7 +24,7 @@
 object Post {
   
   val SPARQL = "application/sparql-query"
-  val supportContentTypes = Lang.supportContentTypes + SPARQL ++ Image.supportedImages.map(_.contentType)
+  val supportContentTypes = Lang.supportContentTypes ++ Image.supportedImages.map(_.contentType) + SPARQL
   val supportedAsString = supportContentTypes mkString ", "
 
   
@@ -36,7 +36,7 @@
       contentType: String): Post = {
     assert(supportContentTypes contains contentType)
 
-    def inAsString = {
+    val inAsString = {
        val source = Source.fromInputStream(is, "UTF-8")
        source.getLines.mkString("\n")
     }