Branch: Tag:

2002-10-23

2002-10-23 20:58:21 by Martin Nilsson <mani@lysator.liu.se>

Moved some support stuff (output_charset, input_charset, set_output_charset,
adjust_for_config_path) from protocols/http.pike to the RequestID class, so
that we'll get them in InternalRequestID too. Also fixed som trivial bugs in
http.pike. [1.374]

Rev: server/plugins/protocols/http.pike:1.385
Rev: server/server_core/prototypes.pike:1.60

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.384 2002/10/23 20:05:56 nilsson Exp $"; + constant cvs_version = "$Id: http.pike,v 1.385 2002/10/23 20:58:21 nilsson Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
127:      AuthEmulator auth;    - array(string) output_charset = ({}); - string input_charset; -  - void set_output_charset( string|function to, int|void mode ) - { -  if( has_value( output_charset, to ) ) // Already done. -  return; -  -  switch( mode ) -  { -  case 0: // Really set. -  output_charset = ({ to }); -  break; -  -  case 1: // Only set if not already set. -  if( !sizeof( output_charset ) ) -  output_charset = ({ to }); -  break; -  -  case 2: // Join. -  output_charset |= ({ to }); -  break; -  } - } -  +    string charset_name( function|string what )   {    switch( f )
164:      function charset_function( function|string what, int allow_entities )   { -  switch( f ) +  switch( what )    {    case "ISO-10646-1":    case "ISO10646-1":
1850:    send_result();   }    - void adjust_for_config_path( string p ) - { -  if( not_query ) not_query = not_query[ strlen(p).. ]; -  raw_url = raw_url[ strlen(p).. ]; -  misc->site_prefix_path = p; - } -  +    string url_base()   // See the RequestID class for doc.   {