Branch: Tag:

2002-01-16

2002-01-16 15:38:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Propagate cache-control headers to the pragma multiset. (Opera support)

Rev: server/protocols/http.pike:1.353

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.352 2001/12/05 13:53:07 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.353 2002/01/16 15:38:01 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
836:    if( arrayp(contents) ) contents = contents[0];    switch (linename)    { +  case "cache-control": // Opera sends "no-cache" here.    case "pragma": pragma|=(multiset)((contents-" ")/","); break; -  +     case "content-length": misc->len = (int)contents; break;    case "authorization": rawauth = contents; break;    case "referer": referer = ({contents}); break;