Review main Merged Breaking

22655[!!!][TASK] Do not add JSON to header if type equals "json"

Stefan Froemken CR +2 V +2 Easy +5 −3 updated 03/23/15, 14:18

Commit message

If you choose "json" as contentType in AJAX-Calls the encoded
json-string will be pushed to the HTTP-Header and will be
outputted on the website. But HTTP-Header is not the right
place for huge json-strings.
So this patch lets "json" works like "jsonbody".

Back in the days, JSON data in the X-JSON header
was for prototypeJS usage, which is now not used
anymore for AJAX requests within the core.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1