Skip to content

Commit 0628196

Browse files
committed
Revert "Fix overuse of FormData in XmlHttpRequest"
It breaks sending files with CHrome using XmlHttpRequest This reverts commit 8e0dad8.
1 parent 64e7158 commit 0628196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xmlHttpRequest.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ let perform_raw_url
171171
(match post_args with
172172
| None -> None
173173
| Some post_args ->
174-
let contents = `Fields (ref []) in
174+
let contents = Form.empty_form_contents () in
175175
List.iter (fun (name, value) ->
176176
Form.append contents (name, value))
177177
post_args;

0 commit comments

Comments
 (0)