braid-http 0.3.19 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/braid-http-client.js +1 -1
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -229,7 +229,7 @@ async function braid_fetch (url, params = {}) {
|
|
|
229
229
|
|
|
230
230
|
// Now we define the subscription function we just used:
|
|
231
231
|
function start_subscription (cb, error) {
|
|
232
|
-
if (!res.ok)
|
|
232
|
+
if (!res.ok)
|
|
233
233
|
throw new Error('Request returned not ok status:', res.status)
|
|
234
234
|
|
|
235
235
|
if (res.bodyUsed)
|