Re: patch of src/http.c

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

 



	From: Hugo Embrechts (Hugo.Embrechts@kulnet.kuleuven.ac.be)
	Date: 03 Mar 1998 16:22:00 +0100 

> 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.

While installing Hugo's patch I noticed a couple of typo's nearby.

*** http.c~	Sun Feb 15 08:02:51 1998
--- http.c	Thu Mar 26 13:42:14 1998
***************
*** 119,125 ****
  Content-Length: %d\r\n\
  Connection: close\r\n\
  %s\r\n", 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)));
  }
  
--- 119,125 ----
  Content-Length: %d\r\n\
  Connection: close\r\n\
  %s", HTTP, VERSION, content, len, pragma);
!     emitf("Last-Modified: %s\r\n", rfc1122_date(modified));
      emitf("Date: %s\r\n\r\n", rfc1122_date(time(NULL)));
  }
  
***************
*** 138,144 ****
  {
      emitf ("\
  </BODY>\n\
! </HTML\n");
  }
  
  static void http_bad_url (char *url)
--- 138,144 ----
  {
      emitf ("\
  </BODY>\n\
! </HTML>\n");
  }
  
  static void http_bad_url (char *url)


cheers
mark


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

Powered by Linux