Roxen.git / server / plugins / protocols / http.pike

version» Context lines:

Roxen.git/server/plugins/protocols/http.pike:1:   // This is a ChiliMoon protocol module.   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.401 2004/05/27 16:19:37 _cvs_stephen Exp $"; + constant cvs_version = "$Id: http.pike,v 1.402 2004/05/27 17:16:06 _cvs_stephen Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR      // HTTP protocol module.   #include <config.h>   #define TIMER_PREFIX "http:"   #include <timers.h>      inherit RequestID;   
Roxen.git/server/plugins/protocols/http.pike:679:    misc->connection = "keep-alive";    }    break;    case "host":    misc[linename] = lower_case(contents);    break;    case "content-type":    misc[linename] = contents;    break;    case "destination": -  misc["new-uri"] = contents; +     if (mixed err = catch { -  misc["new-uri"] = Standards.URI(contents)->path; +  contents = http_decode_string (Standards.URI(contents)->path);    }) {   #ifdef DEBUG -  report_debug(sprintf("Destination header contained a bad URI: %O\n" -  "%s", contents, describe_error(err))); +  report_debug("Destination header contained a bad URI: %O\n" +  "%s", contents, describe_error(err));   #endif /* DEBUG */    } -  +  misc["new-uri"] = VFS.normalize_path (contents);    break;    }    }    TIMER_END(parse_got_2_parse_headers);    TIMER_START(parse_got_2_more_data);    if(misc->len)    {    if(!data) data="";    int l = misc->len;    wanted_data=l;