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 correctly #1750

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Conversation

individual-it
Copy link
Contributor

all headers need to be set before w.WriteHeader(status code) is called

fixes owncloud/ocis#1779

@update-docs
Copy link

update-docs bot commented Jun 1, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

labkode
labkode previously approved these changes Jun 1, 2021
@individual-it individual-it marked this pull request as draft June 1, 2021 15:06
@individual-it
Copy link
Contributor Author

Thanks for approving , I want to tweak it a bit so that reva responses the same as oC10

@individual-it
Copy link
Contributor Author

@labkode I've added some more changes, please review again

phil-davis
phil-davis previously approved these changes Jun 2, 2021
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

LGTM - only one nit-pick in the changelog.

changelog/unreleased/fix-content-type.md Outdated Show resolved Hide resolved
@phil-davis phil-davis requested a review from ishank011 June 2, 2021 06:26
all headers need to be set before `w.WriteHeader(status code)` is called
@labkode labkode merged commit 4fb7dbb into cs3org:master Jun 2, 2021
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.

ocis returns text/plain content-type not application/json like oc10 when requesting with ?format=json
3 participants