Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 53d813b

Browse files
committed
Merge branch '0.9.4' of github.com:wkh237/react-native-fetch-blob into 0.9.4
2 parents 459d2a2 + 20ed520 commit 53d813b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A project committed to make file acess and data transfer easier, efficient for R
2525
* [Cancel HTTP request](#user-content-cancel-request)
2626
* [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
2727
* [Self-Signed SSL Server](#user-content-self-signed-ssl-server)
28-
* [Transfer Encoding](#user-content-transfer-encoding)
28+
* [Transfer Encoding](#user-content-transfer-encoding)
2929
* [RNFetchBlob as Fetch](#user-content-rnfetchblob-as-fetch)
3030
* [File System](#user-content-file-system)
3131
* [File access](#user-content-file-access)
@@ -691,6 +691,14 @@ You can also grouping requests by using `session` API, and use `dispose` to remo
691691

692692
```
693693

694+
#### Transfer Encoding
695+
696+
After `0.9.4`, the `Chunked` transfer encoding is disabled by default due to some service provoder may not support chunked transfer. To enable it, set `Transfer-Encoding` header to `Chunked`.
697+
698+
```js
699+
RNFetchBlob.fetch('POST', 'http://example.com/upload', { 'Transfer-Encoding' : 'Chunked' }, bodyData)
700+
```
701+
694702
#### Self-Signed SSL Server
695703

696704
By default, react-native-fetch-blob does NOT allow connection to unknown certification provider since it's dangerous. If you're going to connect a server with self-signed certification, add `trusty` to `config`. This function is available for version >= `0.5.3`

0 commit comments

Comments
 (0)