From 38e79aec944f33aa64e8cb0d0070ae7d46f7a365 Mon Sep 17 00:00:00 2001 From: allo Date: Wed, 8 Feb 2006 18:06:26 +0000 Subject: [PATCH] Fix for wrong(?) httpheader: " pragma: no-cache" (IIS specific?) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1578 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpc.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java index 93ad686f3..fdef9c08c 100644 --- a/source/de/anomic/http/httpc.java +++ b/source/de/anomic/http/httpc.java @@ -1679,6 +1679,9 @@ do upload while ((b = serverCore.receive(httpc.this.clientInput, httpc.this.readLineBuffer, terminalMaxLength, false)) != null) { if (b.length == 0) break; buffer = new String(b); + if(buffer.charAt(0)==' '){ //fix for " pragma: no-cache" (IIS specific?) + buffer=buffer.substring(1, buffer.length()); + } //System.out.println("#H#" + buffer); // debug if (buffer.charAt(0) <= 32) { // use old entry