webdav: remove DAV: prefix hack

This commit is contained in:
emersion
2017-09-10 12:35:04 +02:00
parent fd5d1f32d2
commit 2807ec1dd2
2 changed files with 1 additions and 30 deletions

View File

@@ -245,7 +245,7 @@ func TestEscapeXML(t *testing.T) {
func TestFilenameEscape(t *testing.T) {
hrefRe := regexp.MustCompile(`<href xmlns="DAV:">([^<]*)</href>`)
displayNameRe := regexp.MustCompile(`<D:displayname>([^<]*)</D:displayname>`)
displayNameRe := regexp.MustCompile(`<displayname xmlns="DAV:">([^<]*)</displayname>`)
do := func(method, urlStr string) (string, string, error) {
req, err := http.NewRequest(method, urlStr, nil)
if err != nil {