From 4d70d7ea281c3a9b1be631cfb1fb2fd1c1733e4d Mon Sep 17 00:00:00 2001 From: vitalii Date: Sat, 29 Dec 2018 22:04:04 +0200 Subject: [PATCH] use 'application/xml' instead of 'text/xml'. related with (1) in #15 --- requests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests.go b/requests.go index 0e0e343..511e890 100644 --- a/requests.go +++ b/requests.go @@ -91,7 +91,7 @@ func (c *Client) propfind(path string, self bool, body string, resp interface{}, } else { rq.Header.Add("Depth", "1") } - rq.Header.Add("Content-Type", "text/xml;charset=UTF-8") + rq.Header.Add("Content-Type", "application/xml;charset=UTF-8") rq.Header.Add("Accept", "application/xml,text/xml") rq.Header.Add("Accept-Charset", "utf-8") // TODO add support for 'gzip,deflate;q=0.8,q=0.7'