Upgrade Azure Go SDK to v14.6.0

This commit is contained in:
Pengfei Ni
2018-04-24 14:31:34 +08:00
parent 3dbcd1ddce
commit b1b930a39b
134 changed files with 14672 additions and 21634 deletions

View File

@@ -53,13 +53,13 @@ func (b *Blob) leaseCommonPut(headers map[string]string, expectedStatus int, opt
if err != nil {
return nil, err
}
defer readAndCloseBody(resp.body)
defer readAndCloseBody(resp.Body)
if err := checkRespCode(resp.statusCode, []int{expectedStatus}); err != nil {
if err := checkRespCode(resp, []int{expectedStatus}); err != nil {
return nil, err
}
return resp.headers, nil
return resp.Header, nil
}
// LeaseOptions includes options for all operations regarding leasing blobs