Patch for NCSA httpd 1.1

Rob McCool ([email protected])
Tue, 25 Jan 1994 18:45:21 -0600


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);
}