Skip to content

Comments

Merge headers#12619

Merged
MorrisJobke merged 2 commits intomasterfrom
use-also-original-hea
Dec 4, 2014
Merged

Merge headers#12619
MorrisJobke merged 2 commits intomasterfrom
use-also-original-hea

Conversation

@LukasReschke
Copy link
Member

Otherwise the headers from JSONResponse are gone and the Content-Type of the response would be text/html instead of application/json; charset=utf-8. This leads to broken scripts since we set the nosniff header, furthermore this is very bad from a security PoV.

Fixes itself.

@Raydiation @MorrisJobke

Otherwise the headers from `JSONResponse` are gone and the Content-Type of the response would be `text/html` instead of `application/json; charset=utf-8`. This leads to broken scripts since we set the `nosniff` tag, furthermore this is very bad from a security PoV.
@LukasReschke LukasReschke added this to the 8.0-current milestone Dec 4, 2014
@BernhardPosselt
Copy link
Contributor

👍

@DeepDiver1975
Copy link
Member

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

I love that we even had simply wrong unit tests. They just test exactly what is done and not what is wanted -> therefore write the test in a way you want to have a feature and not how the feature is.

@ghost
Copy link

ghost commented Dec 4, 2014

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3777/
🚀 Test PASSed. 🚀

MorrisJobke added a commit that referenced this pull request Dec 4, 2014
@MorrisJobke MorrisJobke merged commit b697514 into master Dec 4, 2014
@MorrisJobke MorrisJobke deleted the use-also-original-hea branch December 4, 2014 15:59
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@lock lock bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants