Patch for NCSA httpd 1.1
robm@ncsa.uiuc.edu (Rob McCool)
Message-id: <9401260045.AA10556@void.ncsa.uiuc.edu>
From: robm@ncsa.uiuc.edu (Rob McCool)
Date: Tue, 25 Jan 1994 18:45:21 -0600
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
To: www-talk@www0.cern.ch, www-announce@www0.cern.ch, butler@hawks.ha.md.us,
steinar@ifi.uio.no
Subject: Patch for NCSA httpd 1.1
Content-Length: 1051
There is a slight bug in httpd 1.1 which will cause it to append an extra
linefeed to the beginning of a compressed document. Rather than save a fix
for 1.2, I'm just going update the distribution since I just put it out
yesterday.
If you already picked up a copy of httpd 1.1 and are using encoding, either
pick up another binary from /Web/ncsa_httpd/current/bin, or, if you're using
the source, apply the patch at the end of this message.
Sorry for the confusion.
--Rob
*** ../../httpd_1.1/src/http_mime.c Wed Jan 19 14:31:55 1994
--- http_mime.c Tue Jan 25 18:12:42 1994
***************
*** 309,315 ****
if(location[0])
fprintf(fd,"Location: %s%c",location,LF);
if(content_encoding[0])
! fprintf(fd,"Content-encoding: %s%c%c",content_encoding,LF,LF);
fprintf(fd,"%c",LF);
}
--- 309,315 ----
if(location[0])
fprintf(fd,"Location: %s%c",location,LF);
if(content_encoding[0])
! fprintf(fd,"Content-encoding: %s%c",content_encoding,LF,LF);
fprintf(fd,"%c",LF);
}