Update vendored library github.com/Azure/azure-sdk-for-go
This commit is contained in:
parent
a951e7b126
commit
5a77b2ab49
3265 changed files with 861288 additions and 439102 deletions
8
vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
generated
vendored
8
vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
generated
vendored
|
@ -229,8 +229,8 @@ func (b *Blob) PutBlockList(blocks []Block, options *PutBlockListOptions) error
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
readAndCloseBody(resp.body)
|
||||
return checkRespCode(resp.statusCode, []int{http.StatusCreated})
|
||||
defer readAndCloseBody(resp.Body)
|
||||
return checkRespCode(resp, []int{http.StatusCreated})
|
||||
}
|
||||
|
||||
// GetBlockListOptions includes the options for a get block list operation
|
||||
|
@ -263,8 +263,8 @@ func (b *Blob) GetBlockList(blockType BlockListType, options *GetBlockListOption
|
|||
if err != nil {
|
||||
return out, err
|
||||
}
|
||||
defer resp.body.Close()
|
||||
defer resp.Body.Close()
|
||||
|
||||
err = xmlUnmarshal(resp.body, &out)
|
||||
err = xmlUnmarshal(resp.Body, &out)
|
||||
return out, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue