Branch: Tag:

2008-09-26

2008-09-26 13:48:35 by Martin Stjernholm <mast@lysator.liu.se>

Did away with a stray debug printout and a rather silly use of break
in the last commit. (Mostly indentation change.)

Rev: server/protocols/http.pike:1.565

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.564 2008/09/26 13:39:12 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.565 2008/09/26 13:48:35 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
547:    supports = (< "images", "gifinline", "forms", "mailto">);   #endif    -  werror ("%O\n", raw_url); -  +     {    string f = raw_url;    sscanf (f, "%s?%s", f, query);
588:    }       f = decode_query (f, split_query, "roxen-http-default"); -  break decode_query; +     }    -  // No query to decode if we get here, only the path. Optimize -  // decode_query with "roxen-http-default" since we know there's -  // no magic_roxen_automatic_charset_variable. +  else { +  // No query to decode, only the path. Optimize decode_query +  // with "roxen-http-default" since we know there's no +  // magic_roxen_automatic_charset_variable.    f = http_decode_string (f);    if (input_charset) {    if (mixed err = catch {
607:    else    catch (f = utf8_to_string (f));    } +  }      #if 0    // f is sent to Unix API's that take NUL-terminated strings...