From be2c9c07ffd34e301577c9440638b4c9f1bba353 Mon Sep 17 00:00:00 2001 From: danielr Date: Fri, 2 May 2008 08:19:47 +0000 Subject: [PATCH] escape some unescaped characers in URLs (fixes problems with proxy) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4753 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpHeader.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/source/de/anomic/http/httpHeader.java b/source/de/anomic/http/httpHeader.java index 8c7484988..749358e31 100644 --- a/source/de/anomic/http/httpHeader.java +++ b/source/de/anomic/http/httpHeader.java @@ -559,7 +559,10 @@ public final class httpHeader extends TreeMap implements Map implements Map { + class Entry implements Map.Entry { private String k; - private Object v; - Entry(String k, Object v) { + private String v; + Entry(String k, String v) { this.k = k; this.v = v; } public String getKey() { return k; } - public Object getValue() { + public String getValue() { return v; } - public Object setValue(Object v) { - Object r = this.v; + public String setValue(String v) { + String r = this.v; this.v = v; return r; }