Skip to content

Commit

Permalink
Adjusted code according to recommendations from #54
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Reyn <[email protected]>
  • Loading branch information
Pierre Delagrave authored and Felix Reyn committed Oct 18, 2016
1 parent 7b01227 commit b8981c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion out/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Params struct {
File string `json:"file"`
To string `json:"to"`
Acl string `json:"acl"`
ContentType string `json:"content-type"`
ContentType string `json:"content_type"`
}

type OutResponse struct {
Expand Down
5 changes: 1 addition & 4 deletions out/out_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ func (command *OutCommand) Run(sourceDir string, request OutRequest) (OutRespons
options.Acl = request.Params.Acl
}

if request.Params.ContentType != "" {
options.ContentType = request.Params.ContentType
}

options.ContentType = request.Params.ContentType
options.ServerSideEncryption = request.Source.ServerSideEncryption
options.KmsKeyId = request.Source.SSEKMSKeyId

Expand Down
2 changes: 0 additions & 2 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ fi

cd $s3_resource_dir

counterfeiter -o fakes/fake_s3client.go . S3Client

ginkgo -r -p -skipPackage integration

0 comments on commit b8981c5

Please sign in to comment.