From: Claudio Sacerdoti Coen Date: Wed, 9 Jun 2004 13:12:23 +0000 (+0000) Subject: The normalization of URIs when the DB is empty (or it is being filled) is X-Git-Tag: pre_subst_in_kernel~38 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=3289eda62f4b44bc5043abd2acff602f7a8e5f26;p=helm.git The normalization of URIs when the DB is empty (or it is being filled) is not reliable. As a consequence the semantics of the Http_getter_map has been changed again: the only method that normalized the URIs before using them is the resolve method. The methods replace, add, remove, etc. no longer normalize their argument. --- diff --git a/helm/ocaml/getter/http_getter_map.ml b/helm/ocaml/getter/http_getter_map.ml index e3a4ab2fc..2b61e7976 100644 --- a/helm/ocaml/getter/http_getter_map.ml +++ b/helm/ocaml/getter/http_getter_map.ml @@ -56,19 +56,19 @@ class map dbname = method add key value = self#doWriter (lazy ( try - Dbm.add db (self#normalize_key key) value + Dbm.add db key value with Dbm.Dbm_error "Entry already exists" -> raise (Key_already_in key) )) method replace key value = self#doWriter (lazy ( - Dbm.replace db (self#normalize_key key) value + Dbm.replace db key value )) method remove key = self#doWriter (lazy ( try - Dbm.remove db (self#normalize_key key) + Dbm.remove db key with Dbm.Dbm_error "dbm_delete" -> raise (Key_not_found key) ))