Branch: Tag:

2008-01-10

2008-01-10 15:14:27 by Martin Stjernholm <mast@lysator.liu.se>

Enable vary support for IE 7 (not that I verified that it really works).

Rev: server/protocols/http.pike:1.540

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.539 2008/01/10 10:19:56 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.540 2008/01/10 15:14:27 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
607:   #else    supports = (< "images", "gifinline", "forms", "mailto">);   #endif -  if (!has_value(client, "MSIE")) +  { +  int i = search (client, "MSIE"); +  if (i < 0)    supports->vary = 1; -  else { -  // FIXME: Vary seems to work in MSIE 7. +  else if (++i < sizeof (client) && +  sscanf (client[i], "%d", int msie_major) == 1) { +  // Vary doesn't work in MSIE <= 6. +  // FIXME: Does it really work in MSIE 7? +  if (msie_major >= 7) +  supports->vary = 1;    } -  +  }    //REQUEST_WERR("HTTP: parse_got(): supports");    if(!referer) referer = ({ });    if(misc->proxyauth)