Bug 115744
Summary: | xhr of JSON File object sends toJSON() representation | ||
---|---|---|---|
Product: | WebKit | Reporter: | TJ Holowaychuk <tj> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | ap |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
TJ Holowaychuk
We came across a bug (or gotcha?) that if you send a File object representing JSON, with the Content-Type application/json it
will invoke .toJSON(), yielding a body such as the following:
{"webkitRelativePath":"","lastModifiedDate":"2013-04-25T21:45:17.000Z","name":"package.json","type":"application/json","size":265,"kind":"file"}
This seems pretty incorrect as any other type of file would pass through appropriately.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
TJ Holowaychuk
Oh no this may be our request lib, I'll re-open if I can confirm the issue stand-alone.