aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
Diffstat (limited to 'bulk.go')
-rw-r--r--bulk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bulk.go b/bulk.go
index a21f199..7c08345 100644
--- a/bulk.go
+++ b/bulk.go
@@ -76,7 +76,7 @@ func (a *Account) BulkUpload(ctx context.Context, uploadPath string, format Bulk
}
req := Request{
- Method: "PUT",
+ Method: http.MethodPut,
Body: contents,
Options: cloneRequestOptions(opts, nil),
ExpectStatusCodes: []int{200},
@@ -259,7 +259,7 @@ func (a *Account) bulkDeleteSingle(ctx context.Context, objects []*Object, conta
// account.Capabilities.BulkDelete.MaximumDeletesPerRequest`.
func (a *Account) bulkDelete(ctx context.Context, names []string, opts *RequestOptions) (numDeleted, numNotFound int, err error) {
req := Request{
- Method: "DELETE",
+ Method: http.MethodDelete,
Body: strings.NewReader(strings.Join(names, "\n") + "\n"),
Options: cloneRequestOptions(opts, nil),
ExpectStatusCodes: []int{200},