Article delegate-en <_A1675@delegate-en.ML_>
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[delegate-en/1675]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Broken headers in '304 Not Modified (cached)'
07 Jun 2002 08:07:28 GMT SHIMIZU Fumiyuki <prmdabdyi.ml@ml.delegate.org>


Hi there,

I found that http headers were corrupted when DeleGate returned '304
Not Modified (cached),' and hacked DeleGate 7.9.5 quickly. Please fix
them formally.

------ snip ------
--- http.c.~1~	Fri May 17 12:39:52 2002
+++ http.c	Fri Jun  7 16:08:19 2002
@@ -2793,8 +2793,11 @@
 		}
 		if( strncasecmp(line,"Date:",5) == 0 ){
 			strcpy(line,"Date: ");
-			StrftimeGMT(line,sizeof(line),TIMEFORM_RFC822,time(0));
+			StrftimeGMT(line + 6,sizeof(line) - 6,TIMEFORM_RFC822,time(0));
 			strcat(line,"\r\n");
+		}
+		else if( strncasecmp(line,"Content-", 8) == 0 ){
+			*line = 0;
 		}
 		if( line[0] == '\r' || line[0] == '\n' )
 			total += putKeepAlive(Conn,tc);
------ snip ------

Thank you and best regards,
---
SHIMIZU Fumiyuki	mailto:prmdabdyi.ml@ml.delegate.org


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V