3 ms·
Is it ever valid/legal to accept multiple content-types like this? Or is this a regression bug that was introduced?
by jermaustin1 8y ago
Is it ever valid/legal to accept multiple content-types like this? Or is this a regression bug that was introduced?
- deathanatos 8y agoThis isn't even "multiple content-types", the value is just malformed. The ";" would normally introduce parameters to the content-type, such as in "text/plain; charset=utf-8". Here, "/json" is just garbage. It isn't allowed to have multiple content-types. (And it would make no sense.)
- jermaustin1 8y agoMy thought was for a "mixed media" like multi-part form data. Maybe the response would be text/plain; text/json (or shortened because the first one is text/plain to just /json). I will do mental gymnastics to try and figure out if something was meant to be a certain way or not.