Commit 5061fde
FormData can append only string or object with uri
Summary:
I fix FormData type checking.
Simple test case:
```js
var fd = new FormData();
// JS Error.
// Because all non-string values threaded as "blob"
fd.append('number', 1);
```
Closes facebook#4390
Reviewed By: svcscm
Differential Revision: D2818377
Pulled By: nicklockwood
fb-gh-sync-id: 8b3f27476af21c5fd65b844034579372172ea73c1 parent 43dcdaf commit 5061fde
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
0 commit comments