use 'application/xml' instead of 'text/xml'. related with (1) in #15

This commit is contained in:
vitalii 2018-12-29 22:04:04 +02:00
parent 8bcb1b383c
commit 4d70d7ea28

View File

@ -91,7 +91,7 @@ func (c *Client) propfind(path string, self bool, body string, resp interface{},
} else { } else {
rq.Header.Add("Depth", "1") 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", "application/xml,text/xml")
rq.Header.Add("Accept-Charset", "utf-8") rq.Header.Add("Accept-Charset", "utf-8")
// TODO add support for 'gzip,deflate;q=0.8,q=0.7' // TODO add support for 'gzip,deflate;q=0.8,q=0.7'