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

Always return size in ocdav #712

Merged
merged 1 commit into from
May 5, 2020
Merged

Always return size in ocdav #712

merged 1 commit into from
May 5, 2020

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented May 5, 2020

Return the file size in ocdav regardless whether the mime type was
detected or not

See owncloud/ocis-reva#67 (comment) for context.

Separately, we might also want to default to "application/octet-stream" instead of an empty string when the mime type was not detectable.

@butonic @labkode

@PVince81 PVince81 requested a review from labkode as a code owner May 5, 2020 09:22
@PVince81
Copy link
Contributor Author

PVince81 commented May 5, 2020

Ohh, and now I realize this is wrong. This would return the file size also for folders.
I'll adjust the condition...

Return the file size in ocdav regardless whether the mime type was
detected or not
@PVince81
Copy link
Contributor Author

PVince81 commented May 5, 2020

PR adjusted

@labkode
Copy link
Member

labkode commented May 5, 2020

Thanks @PVince81 , makes a lot of sense to default to application/octet-stream, mind creating another PR?

@PVince81
Copy link
Contributor Author

PVince81 commented May 5, 2020

@labkode done: #713

@labkode labkode merged commit c768bcc into cs3org:master May 5, 2020
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.

2 participants