use 'application/xml' instead of 'text/xml'. related with (1) in #15
This commit is contained in:
parent
8bcb1b383c
commit
4d70d7ea28
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user