Branch: Tag:

2005-12-20

2005-12-20 17:30:57 by Arjan van Staalduijnen <Arjan.van.Staalduijnen@rtl.nl>

Bugfix for conditionals. Thanks to Arjan van Staalduijnen <Arjan.van.Staalduijnen@rtl.nl>.

Rev: server/protocols/http.pike:1.492

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.491 2005/12/13 12:17:44 anders Exp $"; + constant cvs_version = "$Id: http.pike,v 1.492 2005/12/20 17:30:57 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1931:    m_delete(heads, "Expires");       if (file->error == 200) { +  // FIXME: This code probably ought to move to after the store +  // to the RAM cache. +  // /grubba 2005-12-20    int conditional;    if (none_match) {    // NOTE: misc->etag may be zero below, but that's ok.
1982:    // All conditionals apply.    file->error = conditional;    file->file = file->data = file->len = 0; +  misc->no_proto_cache = 1;    }    }