changeset 54:77e8911c5b72

use tidy from services.w3.org
author Denis Ah-Kang <denis@w3.org>
date Thu, 29 Sep 2011 17:38:54 +0200
parents aaab764c0c8d
children bb9b783c2f7c
files src/main/scala/Main.scala src/main/scala/URLResolver.scala
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/scala/Main.scala	Thu Sep 29 10:54:55 2011 -0400
+++ b/src/main/scala/Main.scala	Thu Sep 29 17:38:54 2011 +0200
@@ -122,7 +122,7 @@
 
         val paramsW = defaultParams ++ paramsNoURI + ( "doc_uri" -> spec )
 
-        pubrulesWrapper using paramsW applyOn (Source(spec)) getResponder()
+        pubrulesWrapper using paramsW applyOn (Source.fromTidy(spec)) getResponder()
 
       }
     }
--- a/src/main/scala/URLResolver.scala	Thu Sep 29 10:54:55 2011 -0400
+++ b/src/main/scala/URLResolver.scala	Thu Sep 29 17:38:54 2011 +0200
@@ -31,8 +31,8 @@
     // println(uriString)
     if (uriString startsWith "http://www.w3.org/services/headers?url=")
       URLResolver.headers(uriString.substring(39))
-    else if (uriString startsWith "http://services.w3.org/tidy/tidy?docAddr=")
-      URLResolver.tidy(uriString.substring(41))
+    //else if (uriString startsWith "http://services.w3.org/tidy/tidy?docAddr=")
+    //  URLResolver.tidy(uriString.substring(41))
     else {
       URLResolver.prefixes find { uriString startsWith _._1 } match {
         case Some((prefix, path)) => {
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.