Branch: Tag:

2000-08-20

2000-08-20 03:02:01 by Per Hedbor <ph@opera.com>

Fixes for [Bug 32 (#32)]. The headers must also be encoded using the same charset as the content. This might break things horribly if the charset is EBDIC or something similar, but there is really no way to work around that and still have working redirects. Of course, the header keys might be kept as iso-8859-1, and only the values encoded, but I don't know if that's more correct, really

Rev: server/config_interface/standard/sites/encode_form_name.pike:1.1
Rev: server/config_interface/standard/sites/new_site.html:1.11
Rev: server/protocols/http.pike:1.251

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.250 2000/08/17 01:16:06 per Exp $"; + constant cvs_version = "$Id: http.pike,v 1.251 2000/08/20 03:02:01 per Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1805:    head_string += h+": "+heads[h]+"\r\n";    head_string += "\r\n";   #endif +  if( strlen( charset ) ) +  head_string = output_encode( head_string )[1];    conf->hsent += strlen(head_string);    }    }