Branch: Tag:

2001-11-05

2001-11-05 13:34:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

No need for duplicate identical headers.
Fixes [bug 2435 (#2435)].

Rev: server/etc/modules/Roxen.pmod:1.129

1:   // This is a roxen pike module. Copyright © 1999 - 2001, Roxen IS.   // - // $Id: Roxen.pmod,v 1.128 2001/10/08 06:07:41 per Exp $ + // $Id: Roxen.pmod,v 1.129 2001/11/05 13:34:09 grubba Exp $      #include <roxen.h>   #include <config.h>
186:   mapping add_http_header(mapping to, string name, string value)   {    if(to[name]) { -  if(arrayp(to[name])) +  if(arrayp(to[name])) { +  if (search(to[name], value) == -1)    to[name] += ({ value }); -  else +  } else { +  if (to[name] != value)    to[name] = ({ to[name], value });    } -  +  }    else    to[name] = value;    return to;
2068:    {    case "edv":    report_notice( "Warning: Non 8-bit safe client detected (%s)", -  (id?id->client*"":"unknown client")); +  (id?id->client*" ":"unknown client"));    return 0;       case "åäö":
2078:    id && id->set_output_charset && id->set_output_charset( "iso-2022" );    return _charset_decoder(Locale.Charset.decoder("iso-2022-jp"))->decode;    +  case "+AOUA5AD2-": +  id && id->set_output_charset && id->set_output_charset( "utf-7" ); +  return _charset_decoder(Locale.Charset.decoder("utf-7"))->decode; +     case "åäö":    case "åä":    id && id->set_output_charset && id->set_output_charset( "utf-8" );