braid-http 1.3.47 → 1.3.48
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 +5 -0
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -986,6 +986,11 @@ async function multiplex_fetch(url, params, mux_params) {
|
|
|
986
986
|
|
|
987
987
|
var res = await normal_fetch(url, params)
|
|
988
988
|
|
|
989
|
+
if (res.status === 409) {
|
|
990
|
+
var e = await r.json()
|
|
991
|
+
if (e.error === 'Request already multiplexed') throw new Error(e.error)
|
|
992
|
+
}
|
|
993
|
+
|
|
989
994
|
if (res.status === 424 && !mux_was_done) {
|
|
990
995
|
// this error will trigger a retry if the user is using that option
|
|
991
996
|
throw new Error('multiplexer not yet connected')
|