Cookies for Import-Export

This commit is contained in:
Michal Horejsek
2020-09-09 09:09:35 +02:00
parent 2e439e17cf
commit de58c7a905
3 changed files with 26 additions and 1 deletions

View File

@ -266,6 +266,9 @@ func (c *client) doBuffered(req *http.Request, bodyBuffer []byte, retryUnauthori
return
}
// Cookies are returned only after request was sent.
c.log.Tracef("REQCOOKIES '%v'", req.Cookies())
resDate := res.Header.Get("Date")
if resDate != "" {
if serverTime, err := http.ParseTime(resDate); err == nil {