Update swift vendor for upstreamed change

Gets rid of deviation between hash and upstream.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2016-11-23 11:45:56 -08:00
parent 7694c31658
commit e9684b126e
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
3 changed files with 6 additions and 5 deletions

View file

@ -1746,15 +1746,15 @@ func (c *Connection) Object(container string, objectName string) (info Object, h
return
}
}
//HACK
//Currently ceph doestn't return Last-Modified header for DLO manifest without any segments
//Currently it affects all versions of ceph http://tracker.ceph.com/issues/15812
// Currently ceph doesn't return a Last-Modified header for DLO manifests without any segments
// See ceph http://tracker.ceph.com/issues/15812
if resp.Header.Get("Last-Modified") != "" {
info.ServerLastModified = resp.Header.Get("Last-Modified")
if info.LastModified, err = time.Parse(http.TimeFormat, info.ServerLastModified); err != nil {
return
}
}
info.Hash = resp.Header.Get("Etag")
return
}