Branch: Tag:

2003-09-17

2003-09-17 10:53:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved RFC 2518 (WEBDAV) support to a separate module.

Rev: server/base_server/configuration.pike:1.540
Rev: server/modules/misc/webdav.pike:1.1
Rev: server/protocols/http.pike:1.405

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.404 2003/07/16 14:52:34 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.405 2003/09/17 10:53:19 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1821:       MARK_FD("HTTP handling request");    -  if (method == "OPTIONS") { -  file = ([ "type":"text/html", -  "data":"", -  "extra_heads":([ -  "Allow":"CHMOD,DELETE,GET,HEAD,MKCOL,MKDIR,MOVE," -  "MV,PING,POST,PROPFIND,PROPPATCH,PUT,OPTIONS", -  "Public":"CHMOD,DELETE,GET,HEAD,MKCOL,MKDIR,MOVE," -  "MV,PING,POST,PROPFIND,PROPPATCH,PUT,OPTIONS", -  "Accept-Ranges":"bytes", -  "DAV":"1", -  ]), -  ]); -  } else { +     array e;    if(e= catch(file = conf->handle_request( this_object() )))    INTERNAL_ERROR( e );
1853:    else if( file->pipe )    return;    } -  } +     TIMER_END(handle_request);    send_result();   }