[Webkit-unassigned] [Bug 190354] Web Inspector: CSP request payload on medium.com is unreadable, should be pretty-printed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 8 23:35:21 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=190354
--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org> ---
You can just do a fetch to a server with JSON data without specifying a JSON mime type to reproduce:
fetch("data.json?" + Math.random(), {
method: "POST",
// headers: {"Content-Type": "application/json"},
body: `{"a":1,"b":2,"c":3,"d":4,"e":5,"f":6}`,
});
Indeed it was the case that a non-JSON/JavaScript mime type we don't attempt to format. I suppose we can, and I believe we did that in the past for text that might be JSON like.
Heck we could just attempt a JSON.parse() of the contents to decide whether or not to enable the format button.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181009/3b02734f/attachment.html>
More information about the webkit-unassigned
mailing list