]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: the xml:base URL and helm:base URI were NOT base URL/URI: they
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 May 2004 08:39:54 +0000 (08:39 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 May 2004 08:39:54 +0000 (08:39 +0000)
were full URIs (with also the filename at the end). Fixed by using
Filename.dirname (that seems to work also with generic URIs).

helm/ocaml/getter/http_getter_cache.ml

index ef0a8dffa6b5e904efe7466250ee70b593b94b54..5b0e66832e021f1b6a600f33ae6c649622b2849b 100644 (file)
@@ -102,7 +102,8 @@ let respond_xml
   in
   let patch_fun =
     if patch then
-      Http_getter_common.patch_xml ~xmlbases:(uri, url) ~via_http ()
+      Http_getter_common.patch_xml
+       ~xmlbases:(Filename.dirname uri, Filename.dirname url) ~via_http ()
     else
       (fun x -> x)
   in