private int DavGetBase_ValidateDavRequest(object sender, EventArgs e) { if (base.RequestLength != 0) { return((int)ServerResponseCode.BadRequest); } try { //Try to set the content type based on the requested extension this.ContentType = InternalFunctions.GetMimeType(Path.GetExtension(this.RelativeRequestPath)); } catch (Exception) { } return((int)ServerResponseCode.Ok); }