proper argument type (amending 8d5cb4ea2b7c);
authorwenzelm
Mon, 21 Aug 2017 19:20:02 +0200
changeset 66479 5c0a3f63057d
parent 66478 439296f00ab5
child 66480 4b8d1df8933b
proper argument type (amending 8d5cb4ea2b7c);
src/Pure/General/http.scala
--- a/src/Pure/General/http.scala	Mon Aug 21 17:35:59 2017 +0200
+++ b/src/Pure/General/http.scala	Mon Aug 21 19:20:02 2017 +0200
@@ -141,8 +141,8 @@
   /* welcome */
 
   val welcome: Handler =
-    get("/", uri =>
-      if (uri.toString == "/") {
+    get("/", arg =>
+      if (arg.uri.toString == "/") {
         val id =
           Isabelle_System.getenv("ISABELLE_ID") match {
             case "" => Mercurial.repository(Path.explode("~~")).id()
@@ -160,9 +160,9 @@
       Isabelle_System.fonts(html = true).map(path => (path.base_name -> Bytes.read(path))): _*)
 
   def fonts(root: String = "/fonts"): Handler =
-    get(root, uri =>
+    get(root, arg =>
       {
-        val uri_name = uri.toString
+        val uri_name = arg.uri.toString
         if (uri_name == root) Some(Response.text(cat_lines(html_fonts.map(_._1))))
         else html_fonts.collectFirst({ case (a, b) if uri_name == root + "/" + a => Response(b) })
       })