--- 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")
}