Skip to content

Commit

Permalink
refactor: no longer sending unnecessary tags
Browse files Browse the repository at this point in the history
  • Loading branch information
didasy committed Sep 25, 2020
1 parent 1690321 commit 0ca5ce4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 5 additions & 4 deletions mock/savevideo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions plugin/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import (
)

const (
DefaultCacheControl = ""
DefaultVideoContentType = "video/mp4"
DefaultCacheControl = ""
)

type GCS struct {
Expand Down Expand Up @@ -46,9 +45,6 @@ func (g *GCS) SaveAs(ctx context.Context, name string, r io.Reader) (written int
w := g.cli.Bucket(g.bucketName).Object(name).NewWriter(ctx)
defer w.Close()

w.CacheControl = DefaultCacheControl
w.ContentType = DefaultVideoContentType

written, err = io.Copy(w, r)

return
Expand Down

0 comments on commit 0ca5ce4

Please sign in to comment.