And I guess for context, the code that causes the error might be helpful:
service, err := storage.New(c)
if err != nil {
return err
}
obj := &storage.Object{
ContentEncoding: "application/zip",
Name: filename,
}
_, err = service.Objects.Insert(bucket, obj).Media(f).Do()
return err