implement Remove

This commit is contained in:
Christoph Polcin
2014-10-23 14:10:31 +02:00
parent a5b6eb39ff
commit d4b8ebb4b2
4 changed files with 38 additions and 1 deletions

View File

@@ -3,12 +3,19 @@ package gowebdav
import (
"bytes"
"encoding/xml"
"errors"
"fmt"
"io"
"net/http"
"strconv"
"strings"
"time"
)
func Error(r *http.Response) error {
return errors.New(fmt.Sprintf("%s - %s %s", r.Status, r.Request.Method, r.Request.URL.String()))
}
func FixSlash(s string) string {
if !strings.HasSuffix(s, "/") {
s += "/"