From 3289eda62f4b44bc5043abd2acff602f7a8e5f26 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 9 Jun 2004 13:12:23 +0000 Subject: [PATCH] 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. --- helm/ocaml/getter/http_getter_map.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) )) -- 2.39.2