icpConstruct304response fix for 1.1.beta2[67]

From: Balint Nagy Endre <bne@dont-contact.us>
Date: Wed, 4 Dec 1996 20:28:33 +0100 (MET)

Hi,

I added 5 \r-s to icp.c. They are badly needed.

Take a look at http://192.84.229.35/Squid.html too, some progress is with Squid for UnixWare 2.03.

--- squid-1.1.beta26/include/version.h.orig Wed Dec 4 09:01:09 1996
+++ squid-1.1.beta26/include/version.h Wed Dec 4 19:42:56 1996
@@ -3,7 +3,7 @@
  * SQUID_VERSION - String for version id of this distribution
  */
 #ifndef SQUID_VERSION
-#define SQUID_VERSION "1.1.beta26"
+#define SQUID_VERSION "1.1.beta26-CareNet1"
 #endif
 
 #ifndef SQUID_RELEASE_TIME
--- squid-1.1.beta26/src/icp.c.orig Wed Dec 4 09:01:13 1996
+++ squid-1.1.beta26/src/icp.c Wed Dec 4 19:14:21 1996
@@ -2069,23 +2069,23 @@
     memset(reply, '\0', 8192);
     strcpy(reply, "HTTP/1.0 304 Not Modified\r\n");
     if (source->date > -1) {
- sprintf(line, "Date: %s\n", mkrfc1123(source->date));
+ sprintf(line, "Date: %s\r\n", mkrfc1123(source->date));
         strcat(reply, line);
     }
     if ((int) strlen(source->content_type) > 0) {
- sprintf(line, "Content-type: %s\n", source->content_type);
+ sprintf(line, "Content-type: %s\r\n", source->content_type);
         strcat(reply, line);
     }
     if (source->content_length) {
- sprintf(line, "Content-length: %d\n", source->content_length);
+ sprintf(line, "Content-length: %d\r\n", source->content_length);
         strcat(reply, line);
     }
     if (source->expires > -1) {
- sprintf(line, "Expires: %s\n", mkrfc1123(source->expires));
+ sprintf(line, "Expires: %s\r\n", mkrfc1123(source->expires));
         strcat(reply, line);
     }
     if (source->last_modified > -1) {
- sprintf(line, "Last-modified: %s\n", mkrfc1123(source->last_modified));
+ sprintf(line, "Last-modified: %s\r\n", mkrfc1123(source->last_modified));
         strcat(reply, line);
     }
     sprintf(line, "\r\n");

Andrew. (Endre "Balint" Nagy) <bne@CareNet.hu>
Received on Wed Dec 04 1996 - 11:34:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:49 MST