Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set content type appropriately #151

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

phbnf
Copy link
Contributor

@phbnf phbnf commented Aug 19, 2024

Need to initialize the writer before setting the content type

Need to initialize the writer before setting the content type
if cond == nil {
w = obj.NewWriter(ctx)

} else {
w = obj.If(*cond).NewWriter(ctx)
}
w.ObjectAttrs.ContentType = contType
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes - that seems like a better location :)

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 36.00%. Comparing base (46ec9c2) to head (fa1154b).
Report is 67 commits behind head on main.

Files Patch % Lines
storage/gcp/gcp.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
+ Coverage   35.80%   36.00%   +0.19%     
==========================================
  Files          16       32      +16     
  Lines        1363     2811    +1448     
==========================================
+ Hits          488     1012     +524     
- Misses        801     1688     +887     
- Partials       74      111      +37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phbnf phbnf merged commit e249134 into transparency-dev:main Aug 19, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants