owncloud/core — pull request #12619 by LukasReschke (2014-12-04 13:45:24+00:00)
Title: Merge headers

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.

@Raydiation @MorrisJobke