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

Respect mediatypes for deploy #7531

Merged
merged 4 commits into from
Aug 3, 2020

Conversation

satotake
Copy link
Contributor

@satotake satotake commented Aug 2, 2020

Fixes #6861

deploy/deploy.go Outdated
@@ -51,6 +52,7 @@ type Deployer struct {

target *target // the target to deploy to
matchers []*matcher // matchers to apply to uploaded files
mediaTypes *media.Types // Hugo's MediaType to guess ContentType
Copy link
Member

Choose a reason for hiding this comment

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

Why is this a pointer? A pointer to a slice is not something I use very often.

Copy link
Contributor Author

@satotake satotake Aug 3, 2020

Choose a reason for hiding this comment

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

Because I misunderstood this would improve performance.
But I was wrong and have fixed, thanks.

@bep bep merged commit 12f6a1c into gohugoio:master Aug 3, 2020
@satotake satotake deleted the respect-mediatypes-for-deploy branch November 24, 2020 19:08
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Hugo Deploy respect custom MediaType/OutputFormat
2 participants