From a8f833a646d941b199cfafe4fc2035a1dbfec534 Mon Sep 17 00:00:00 2001 From: allencloud Date: Fri, 10 Feb 2017 16:30:25 +0800 Subject: [PATCH] remove unused headers in secret_create.go Signed-off-by: allencloud --- secret_create.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/secret_create.go b/secret_create.go index de8b041567..b5325a560f 100644 --- a/secret_create.go +++ b/secret_create.go @@ -10,10 +10,8 @@ import ( // SecretCreate creates a new Secret. func (cli *Client) SecretCreate(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) { - var headers map[string][]string - var response types.SecretCreateResponse - resp, err := cli.post(ctx, "/secrets/create", nil, secret, headers) + resp, err := cli.post(ctx, "/secrets/create", nil, secret, nil) if err != nil { return response, err }