Explorar el Código

Merge branch '0.9.4' of github.com:wkh237/react-native-fetch-blob into 0.9.4

Ben Hsieh hace 8 años
padre
commit
53d813b63b
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9
    1
      README.md

+ 9
- 1
README.md Ver fichero

@@ -25,7 +25,7 @@ A project committed to make file acess and data transfer easier, efficient for R
25 25
  * [Cancel HTTP request](#user-content-cancel-request)
26 26
  * [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
27 27
  * [Self-Signed SSL Server](#user-content-self-signed-ssl-server)
28
-* [Transfer Encoding](#user-content-transfer-encoding)
28
+ * [Transfer Encoding](#user-content-transfer-encoding)
29 29
  * [RNFetchBlob as Fetch](#user-content-rnfetchblob-as-fetch)
30 30
 * [File System](#user-content-file-system)
31 31
  * [File access](#user-content-file-access)
@@ -691,6 +691,14 @@ You can also grouping requests by using `session` API, and use `dispose` to remo
691 691
 
692 692
 ```
693 693
 
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
+
694 702
 #### Self-Signed SSL Server
695 703
 
696 704
 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`