Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e84db22d08 | |||
| c05cfbbae8 | |||
| 0657afd6ce | |||
| 36f13468b4 | |||
| 0e1f2f30fc | |||
| f20f3cc30a | |||
| 8320c894b9 | |||
| 79f7465418 |
@@ -65,7 +65,7 @@ at the expense of causing the 'content-type' response header to be incorrectly r
|
||||
(as 'text/plain; charset=x-user-defined') in some browsers, notably Safari and Chrome 42
|
||||
and older. Preserves binary data whenever possible. In some cases the implementation may
|
||||
also be a bit slow. This was the default in versions of this module before 1.5.
|
||||
* 'prefer-stream': Provide data before the request completes even if binary data (anything
|
||||
* 'prefer-streaming': Provide data before the request completes even if binary data (anything
|
||||
that isn't a single-byte ASCII or UTF8 character) will be corrupted. Of course, this option
|
||||
is only safe for text data. May also cause the 'content-type' response header to be
|
||||
incorrectly reported (as 'text/plain; charset=x-user-defined').
|
||||
|
||||
@@ -120,7 +120,6 @@ ClientRequest.prototype._onFinish = function () {
|
||||
|
||||
if (self._mode === 'fetch') {
|
||||
var signal = null
|
||||
var fetchTimer = null
|
||||
if (capability.abortController) {
|
||||
var controller = new AbortController()
|
||||
signal = controller.signal
|
||||
|
||||
+10
-10
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stream-http",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.1",
|
||||
"description": "Streaming http in the browser",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
@@ -28,18 +28,18 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"builtin-status-codes": "^3.0.0",
|
||||
"inherits": "^2.0.1",
|
||||
"readable-stream": "^3.0.6",
|
||||
"xtend": "^4.0.0"
|
||||
"inherits": "^2.0.4",
|
||||
"readable-stream": "^3.6.0",
|
||||
"xtend": "^4.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"airtap": "^2.0.3",
|
||||
"airtap": "^3.0.0",
|
||||
"basic-auth": "^2.0.1",
|
||||
"brfs": "^2.0.1",
|
||||
"cookie-parser": "^1.4.3",
|
||||
"express": "^4.16.3",
|
||||
"tape": "^4.9.0",
|
||||
"ua-parser-js": "^0.7.18",
|
||||
"brfs": "^2.0.2",
|
||||
"cookie-parser": "^1.4.5",
|
||||
"express": "^4.17.1",
|
||||
"tape": "^5.0.0",
|
||||
"ua-parser-js": "^0.7.21",
|
||||
"webworkify": "^1.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user