--- a/src/main/scala/Main.scala Sun Aug 28 23:58:13 2011 -0400
+++ b/src/main/scala/Main.scala Mon Aug 29 00:09:17 2011 -0400
@@ -30,10 +30,13 @@
val baseURI = req.underlying.getRequestURL.toString
val r:Resource = rm.resource(new URL(baseURI))
req match {
- case GET(_) => {
+ case GET(_) | HEAD(_) => {
val model:Model = r.get()
val encoding = RDFEncoding(req)
- Ok ~> ViaSPARQL ~> ResponseModel(model, baseURI, encoding)
+ req match {
+ case GET(_) => Ok ~> ViaSPARQL ~> ResponseModel(model, baseURI, encoding)
+ case HEAD(_) => Ok ~> ViaSPARQL
+ }
}
case PUT(_) => {
val bodyModel = modelFromInputStream(Body.stream(req), baseURI)