Skip to content

Commit b5b8b13

Browse files
committed
Lib: fix #327
1 parent f049bbf commit b5b8b13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/xmlHttpRequest.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class type xmlHttpRequest = object ('self)
4343
method overrideMimeType : js_string t -> unit meth
4444
method send : js_string t opt -> unit meth
4545
method send_blob : #File.blob t -> unit meth
46-
method send_document : Dom.element Dom.document -> unit meth
46+
method send_document : Dom.element Dom.document t -> unit meth
4747
method send_formData : Form.formData t -> unit meth
4848
method abort : unit meth
4949
method status : int readonly_prop

lib/xmlHttpRequest.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class type xmlHttpRequest = object ('self)
4444
method overrideMimeType : js_string t -> unit meth
4545
method send : js_string t opt -> unit meth
4646
method send_blob : #File.blob t -> unit meth
47-
method send_document : Dom.element Dom.document -> unit meth
47+
method send_document : Dom.element Dom.document t -> unit meth
4848
method send_formData : Form.formData t -> unit meth
4949
method abort : unit meth
5050
method status : int readonly_prop
@@ -135,9 +135,9 @@ val perform_raw_url :
135135
-> http_frame Lwt.t
136136
(** [perform_raw_url] makes an asynchronous request to the specified [url] with
137137
specified options. The result is a cancelable thread returning
138-
an HTTP frame. By default, if [post_args] and [form_arg] are [None], a GET
138+
an HTTP frame. By default, if [post_args] and [form_arg] are [None], a GET
139139
request is used. If [post_args] or [form_arg] is [Some _] (even [Some []]) then a POST
140-
request is made. But if [override_method] is set, the request method is forced,
140+
request is made. But if [override_method] is set, the request method is forced,
141141
no matter the [post_args] or [form_arg] value. For example, with [override_method]
142142
set to [`PUT] and [form_arg] set to [Some _] a PUT request including the form data
143143
will be made. The [check_headers] argument is run as soon as the answer

0 commit comments

Comments
 (0)