Update article.md

Fixed ArrayBuffer article link;
Fixed typo;
This commit is contained in:
Anton Krekotun 2019-05-28 15:32:20 +03:00 committed by GitHub
parent 50d7cc2352
commit 5a9171602a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ We can use `xhr.responseType` property to set the response format:
- `""` (default) -- get as string, - `""` (default) -- get as string,
- `"text"` -- get as string, - `"text"` -- get as string,
- `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter <info:arraybuffer-and-views>), - `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter <info:arraybuffer-binary-arrays>),
- `"blob"` -- get as `Blob` (for binary data, see chapter <info:blob>), - `"blob"` -- get as `Blob` (for binary data, see chapter <info:blob>),
- `"document"` -- get as XML document (can use XPath and other XML methods), - `"document"` -- get as XML document (can use XPath and other XML methods),
- `"json"` -- get as JSON (parsed automatically). - `"json"` -- get as JSON (parsed automatically).
@ -261,7 +261,7 @@ There are 3 methods for HTTP-headers:
``` ```
````warn header="Can't remove a header" ````warn header="Can't remove a header"
Another peciliarity of `XMLHttpRequest` is that one can't undo `setRequestHeader`. Another peculiarity of `XMLHttpRequest` is that one can't undo `setRequestHeader`.
Once the header is set, it's set. Additional calls add information to the header, don't overwrite it. Once the header is set, it's set. Additional calls add information to the header, don't overwrite it.