1.0.13 http.c bug, and fix

From: Miguel A.L. Paraz <map@dont-contact.us>
Date: Fri, 13 Sep 1996 20:05:51 +0800 (GMT+0800)

-----BEGIN PGP SIGNED MESSAGE-----

Hi,

It looks like releasing version 1.0.13 in time for Friday the 13th has
prevented all objects from being cached! Look what mixing up the
three letters S, E, and T do. :)

Here's the trivial fix:

*** http.c.old Fri Sep 13 19:13:31 1996
- - --- http.c Fri Sep 13 19:14:05 1996
***************
*** 348,356 ****
          case 301: /* Moved Permanently */
          case 410: /* Gone */
              /* don't cache objects from neighbors w/o LMT, Date, or Expires */
! if (BIT_SET(reply->cache_control, HTTP_CC_PRIVATE))
                  httpMakePrivate(entry);
! else if (BIT_SET(reply->cache_control, HTTP_CC_NOCACHE))
                  httpMakePrivate(entry);
              else if (*reply->date)
                  httpMakePublic(entry);
- - --- 348,356 ----
          case 301: /* Moved Permanently */
          case 410: /* Gone */
              /* don't cache objects from neighbors w/o LMT, Date, or Expires */
! if (BIT_TEST(reply->cache_control, HTTP_CC_PRIVATE))
                  httpMakePrivate(entry);
! else if (BIT_TEST(reply->cache_control, HTTP_CC_NOCACHE))
                  httpMakePrivate(entry);
              else if (*reply->date)
                  httpMakePublic(entry);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQB1AgUBMjlOHrsCsZ1D8NARAQHiXgL/fPNS9i8uRRFUv3FZDVuYz+fEzqn3bM3N
CcWqDfln12HOrZ5dlyt4ioqwrWMIyPSijHdMQA0rmU5z3IPveucHBKqH3RjT1mmm
WGTZxiRvKwj/JIbMhxN/cDuMK9dJvGJh
=EaGA
-----END PGP SIGNATURE-----

--
miguel a.l. paraz  <map@iphil.net>                       PGP keyID: 0x43F0D011
iphil communications, makati city, philippines           http://www.iphil.net
Received on Fri Sep 13 1996 - 05:06:01 MDT

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