patch of src/http.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear,

When gathering statistics from the nntpcache webserver port gif images
aren't always passed correctly. The problem is an empty line in the
http message header. The patch below solves the problem.

Cheers,
Hugo

				Hugo Embrechts
------- KULeuvenNet -------------------------------------------------------
			        Ludit, W. de Croylaan 52A, B-3001 Heverlee
			        Hugo.Embrechts@kulnet.kuleuven.ac.be
    			        016 / 32 27 85 (Tel.),  32 29 99 (Fax.)




--- src/http.c  1998/03/02 09:50:02     1.1
+++ src/http.c  1998/03/03 14:59:24
@@ -106,7 +106,7 @@
     if (modified == 0)
        {
            modified = time(NULL);
-           pragma = "Pragma: NoCache";
+           pragma = "Pragma: NoCache\r\n";
        }
     else
        {
@@ -118,7 +118,7 @@
 Content-Type: %s\r\n\
 Content-Length: %d\r\n\
 Connection: close\r\n\
-%s\r\n", HTTP, VERSION, content, len, pragma);
+%s", HTTP, VERSION, content, len, pragma);
     emitf("Last-Modfiied: %s\r\n", rfc1122_date(modified));
     emitf("Date: %s\r\n\r\n", rfc1122_date(time(NULL)));
 }


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux