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

slo: no headers for segments #172

Open
stefanhipfel opened this issue Jul 8, 2021 · 1 comment
Open

slo: no headers for segments #172

stefanhipfel opened this issue Jul 8, 2021 · 1 comment

Comments

@stefanhipfel
Copy link

stefanhipfel commented Jul 8, 2021

When creating a slo, no headers are written to the segment objects:
headers, err := file.conn.ObjectPut(file.segmentContainer, segmentName, segmentReader, true, "", file.contentType, nil)
https://github.com/ncw/swift/blob/master/largeobjects.go#L403

In my case I want to pass a X-Delete-At parameter also to the segments that are created. Otherwise they will be orphaned once the actual file is expired and deleted.

Can we pass in the headers from the file itself?
headers, err := file.conn.ObjectPut(file.segmentContainer, segmentName, segmentReader, true, "", file.contentType, file.headers)

thanks!

@IvoGoman
Copy link

@ncw would you accept a PR for this?

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

No branches or pull requests

2 participants